OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
{deletevehicle _x} foreach crew vehiclename; deletevehicle vehiclename;
-Pilot
-
Or to just hide it so you can its not deleted from existence:
vehiclenam setpos [0,0,0]
-
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.
-
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
-
use the same commad, for fire's and bush's.
-
And triggers and Game Logics.