Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Can you delete with a script?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Can you delete with a script? (Read 646 times)
0 Members and 2 Guests are viewing this topic.
cirkut5732
Guest
Can you delete with a script?
«
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
Logged
Pilot
Contributing Member
Re:Can you delete with a script?
«
Reply #1 on:
15 Nov 2005, 04:43:39 »
{deletevehicle _x} foreach crew
vehiclename
; deletevehicle
vehiclename
;
-Pilot
«
Last Edit: 15 Nov 2005, 04:43:59 by Pilot
»
Logged
RujiK
Members
KoKo Puh-Fizzles!
Re:Can you delete with a script?
«
Reply #2 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]
Logged
I like your approach, lets see your departure.
Download the New Flashlight Script!
Garcia
Members
Leeds United is the best football team...EVER!
Re:Can you delete with a script?
«
Reply #3 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.
Logged
cirkut5732
Guest
Re:Can you delete with a script?
«
Reply #4 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
«
Last Edit: 17 Nov 2005, 05:29:30 by CirKuT
»
Logged
marcus3
Guest
Re:Can you delete with a script?
«
Reply #5 on:
17 Nov 2005, 05:51:35 »
use the same commad, for fire's and bush's.
Logged
THobson
OFPEC Patron
Former Staff
Re:Can you delete with a script?
«
Reply #6 on:
17 Nov 2005, 08:57:23 »
And triggers and Game Logics.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Can you delete with a script?
Top of page