OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BronzeEagle on 11 Jan 2005, 18:28:52

Title: after a few seconds of damage, chopper vanishes
Post by: BronzeEagle on 11 Jan 2005, 18:28:52
I need to create a trigger where once the chopper is damaged, then it activates the trigger and after a few seconds the chopper is deleted.  I just need to know if deleteobject will work on a chopper with people in it.  I know the script will go something like chopper present and then for the condition it'll be:   GetDammage MyChopper > .1

then on activation:  I need something that will delete the object after a few seconds.  
Title: Re:after a few seconds of damage, chopper vanishes
Post by: macguba on 11 Jan 2005, 18:55:34
Use the timeout field:  put whatever value you want in all three boxes, or vary the numbers if you want a random element.    Fuller details in any good trigger tutorial.

On Activation:   deleteVehicle myChopper

You may need to delete the crew explicitly.    deleteVehicle myChopperD or deleteVehicle driver/commander/gunner myChopper.
Title: Re:after a few seconds of damage, chopper vanishes
Post by: Triggerhappy on 11 Jan 2005, 22:09:40
or "deletevehicle _x" foreach crew mychopper