- Joined
- Jan 11, 2009
- Messages
- 3,414
Hi.
I have a function for adding extra time to a global timer; it looks like this:
And then a trigger that looks like this:
Thing is, it doesen't work. What am i doing wrong?
I have a function for adding extra time to a global timer; it looks like this:
JASS:
function wanted takes player p, real decay returns nothing
local real timeleft
set timeleft = TimerGetRemaining(udg_Player_WantedTimers[GetPlayerId(p)])
call PauseTimer(udg_Player_WantedTimers[GetPlayerId(p)])
call TimerStart(udg_Player_WantedTimers[GetPlayerId(p)], timeleft+decay, false, null)
//return
endfunction
And then a trigger that looks like this:
-
WantExpire1
-
Events
- Time - Player_WantedTimers[1] expires
- Conditions
-
Actions
- Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
- Player - Make Player 1 (Red) treat Player 10 (Light Blue) as an Neutral
- Player - Make Player 10 (Light Blue) treat Player 1 (Red) as an Neutral
- Player - Make Player 2 (Blue) treat Player 1 (Red) as an Neutral
-
Events
Thing is, it doesen't work. What am i doing wrong?