I think I scriped this timer correctly but it causes a crash without any relevant error, i'm sure this is it because the crash always happens 35 seconds after the objective starts.
anyone see anything wrong with this timer?
--timed ambush
flanked= CreateTimer("flanked1")
SetTimerValue(flanked1, 35)
StartTimer(flanked1)
OnTimerElapse(
Ambush("Flanked1", 35, 6),
function(timer)
DestroyTimer(flanked)
end,
flanked1
)
Tempermental timers
Moderator: Moderators
- wishihadaname
- Captain

- Posts: 493
- Joined: Fri Dec 28, 2007 2:10 pm
- Projects :: The Corellian Resistance
- Location: Look to your left.... no, your other left....
-
501st_commander
- Master Bounty Hunter

- Posts: 1570
- Joined: Wed Dec 10, 2008 7:48 pm
Re: tempermental timers
Code: Select all
--timed ambush
flanked= CreateTimer("flanked1")
SetTimerValue(flanked1, 35)
StartTimer(flanked1)
OnTimerElapse(
Ambush("Flanked1", 35, 6),
function(timer)
DestroyTimer(flanked1)
end,
flanked1
)
