OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: cirkut5732 on 15 Nov 2005, 04:28:43

Title: Can you delete with a script?
Post by: cirkut5732 on 15 Nov 2005, 04:28:43
I have a loon in a car it drives down the road in a cutscene, then I want it to be gone.
Can i delete it thru a script, or at least hide it?

Thanks
Title: Re:Can you delete with a script?
Post by: Pilot on 15 Nov 2005, 04:43:39
 {deletevehicle _x} foreach crew vehiclename; deletevehicle vehiclename;

-Pilot
Title: Re:Can you delete with a script?
Post by: RujiK on 16 Nov 2005, 03:08:22
Or to just hide it so you can its not deleted from existence:
vehiclenam setpos [0,0,0]
Title: Re:Can you delete with a script?
Post by: Garcia on 16 Nov 2005, 23:08:14
setpossing it to 0,0,0 would be a bad solution. It would destroy the vehicle, and not decrease the lag. So deleting it would be the best solution.
Title: Re:Can you delete with a script?
Post by: cirkut5732 on 17 Nov 2005, 05:23:29
K so just so Im clear heres what I do
I have a loon named loon1
i have a car named car1
to delete these I would use this script

deletevehicle loon1
deletevehicle car1
exit

Right?

And also how would I delete objects Ive added like fires and bushes?

Thanks for the help

Title: Re:Can you delete with a script?
Post by: marcus3 on 17 Nov 2005, 05:51:35
use the same commad, for fire's and bush's.
Title: Re:Can you delete with a script?
Post by: THobson on 17 Nov 2005, 08:57:23
And triggers and Game Logics.