ive been searching and i found some stuff that did not work in my script, ive been tryin some more alternatives but with no luck. maybe you can give me some insight since i found the solution that they use for tanks wont work for some reason.
i need to bring back a script_mover from death, it’s along a splinepath.
i gave it a globalaccum 0 of 0, and a globalaccum 1 of 0. in death(script) first 0 becomes 1 and second accum is set to 1.
at the first stop of the splinepath 2 triggers are executed:
- a simple trigger that lowers accum 0 unless it’s 0.
2 a simple trigger that checks if accum is 0 is 0 and if globalaccum 1 is 1, then it triggers a “resurrect” script on the mover.
mover
{
spawn
{
wait 20
followspline 0 spl_01 50000 length 32 wait
trigger self splinepath
globalaccum 0 set 0
globalaccum 1 set 0
}
death
{
wm_announce “mover is dead!”
setstate mover invisible
globalaccum 0 set 1
globalaccum 1 set 1
}
rebirth
{
setstate mover default // “we are visible again”
}
trigger splinepath
{
trigger mumbo jumbo //trigger that lowers accum0
trigger mumbo2 jumbo2 //triggr tht lowrs ac1 n’ triggrs resrct
followspline 0 spl_01 390 wait length 374
followspline 0 spl_02 390 wait length 374
followspline 0 spl_03 390 wait length 374
followspline 0 spl_04 390 wait length 374
trigger self splinepath //restart spline
}
trigger resurrect
{
alertentity mover // “we are alive again”
}
//////////////////////////////////////////////////////////////////////
mumbo //for time of mover’s malfunction (target_script_trigger)
{
trigger jumbo
{
globalaccum 0 abort_if_equal 0
globalaccum 0 inc -1
}
}
mumbo2 //check if new mover is ready (another target_s_t)
{
trigger jumbo2
{
globalaccum 0 abort_if_not_equal 0
globalaccum 1 abort_if_not_equal 1
trigger mover resurrect // “come back to life!”
globalaccum 1 set 0 //reset to functional mover
}
}
//////////////////////////////////////////////////////////////////////
if you feel it’s weird that i use 2 globalaccums it’s because i need the mover to be dead a couple of rounds and then pop back in at the first position. that could theoreticaly be done by settin accum 0 to 3 in death and giving it 3 rounds to lower.
well anyway this doesnt work. if anyone knows why i’d be so grateful!
thx
BTW im using globals for several reasons so i wouldnt be too happy to get rid of them, oh and i have the resurectable flag checked too, obviously.

stupid brackets lol