Komaqtion
You can change this now in User CP.
- Reaction score
- 469
Hi!
I don't know if there is a system that adds a buff to a unit, which has an "expiration-time" on it (The buff I mean, not the unit ), and being MUI, and customizeable ?
If so, or if it isn't possible, or if there's an easier way... Please notify me XD
But, anyways, I get a single "Syntax Error", on the "call TimerStart(......)" line here, why ?:
I don't know if there is a system that adds a buff to a unit, which has an "expiration-time" on it (The buff I mean, not the unit ), and being MUI, and customizeable ?
If so, or if it isn't possible, or if there's an easier way... Please notify me XD
But, anyways, I get a single "Syntax Error", on the "call TimerStart(......)" line here, why ?:
JASS:
struct Expire
private method remove takes nothing returns nothing
endmethod
static method create takes integer buffid, real duration, unit target returns Expire
local Expire e = Expire.allocate()
local timer t = CreateTimer()
call UnitAddAbility(target, buffid)
call TimerStart(t, duration, false, function .remove)
return e
endmethod
endstruct