I am having troubles with a temporary timer that is created inside a trigger, I just can't get it to work. The timer is
and the function
I have put the little notes to check if the function works.
The weird thing is, if I call the function from the immediate window, it works great, but it doesn't work from the timer. I have checked the send to script option in the trigger window, so that isn't the problem. Any help would be much apreciated.
AddTimer ("fst_drink",0,0,1,"",timer_flag.Enabled + Timer_flag.OneShot,"resdrink(fst_drink)")
and the function
function resdrink(name)
Note "Enters Function"
if name == fst_drink then
Note "Checks name"
if GetVariable("flag_drink") == "1" then
SetVariable("flag_drink", "0")
Note "Checks variable and changes it"
end
end
end
I have put the little notes to check if the function works.
The weird thing is, if I call the function from the immediate window, it works great, but it doesn't work from the timer. I have checked the send to script option in the trigger window, so that isn't the problem. Any help would be much apreciated.