okay, i've had no luck searching through the scripts in the editor's depot, and i see no reason why what i'm doing shouldn't work, so here we all are.
apologies if you've seen this thread on the general scripting board.
scenario. tanks rolling down the hill, they hit a trigger which calls a script telling them to fire upon target barrels. fine. that works. this is all just so i can have the tanks peppering the area. i know about artillery scripts and such, but i want it done this way for simplicity's sake.
there's a trigger set up to detect the damage on the barrels, and if it goes any higher than 0, a script is called to set the damage back to 0 and replace the barrels on their spots (with a wee bit of random placement for variety).
problem being, once the barrels are dead, they don't want to be brought back to life, at least not through a normal trigger. wondering what was going on, i assigned the reset script to a radio channel and noticed something quite odd - when the barrels are hit, naturally they fly off into the air and such, and when i hit the reset command, the barrels would be replaced no problem, but they'd immediately continue flying. very veird.
i assume this is why the script wasn't playing along automatically, that the barrels still have a flying-through-the-air animation to complete before coming to rest. but even waiting until they're completely motionless before resetting them, the tanks no longer recognise them as targets, perhaps because they know they've already been blown up?
any ideas? i've been pointed at invincibility scripts, but can't find any listed in the scripts section, and this head scratcher is slowly turning me green.
thanks in advance
bedges