Home   Help Search Login Register  

Author Topic: Can you delete with a script?  (Read 645 times)

0 Members and 1 Guest 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

Offline 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 »

Offline 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]
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline 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.

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 »

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.

Offline 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.