OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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.
-
or "deletevehicle _x" foreach crew mychopper