Home   Help Search Login Register  

Author Topic: Delete Vehicle Command  (Read 869 times)

0 Members and 1 Guest are viewing this topic.

Demmun

  • Guest
Delete Vehicle Command
« on: 16 Jan 2004, 17:47:21 »
When I use the "deleteVehicle UNITNAME" command, the vehicle disappears but the crew dosen't.

I tried "DeleteVehicle UNITNAMEd; DeleteVehicle UNITNAMEg; deleteVehicle UNITNAME" after reading that this would delete the driver, the gunner and then the vehicle, but when it executes the game shuts down and dumps me to the desktop.

Question;

How do I delete both the vehicle and the crew?

Thank you in advance for any time you might spend on answering what is probably a very simple question.

-Demmun

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:Delete Vehicle Command
« Reply #1 on: 16 Jan 2004, 19:00:42 »
Simple...

put this in the script or trigger you are using to delete the vehicle

"deletevehicle _x" forEach crew <tankname>; deletevehicle <tankname>

and just replace the 2 <tankname> 's   with the name of the tank

have fun  :)



SILENTHUNTER
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

Demmun

  • Guest
Re:Delete Vehicle Command
« Reply #2 on: 20 Jan 2004, 12:10:05 »
Didn't work. The vehicle disappeared but the crew remained

-Demmun

Unnamed

  • Guest
Re:Delete Vehicle Command
« Reply #3 on: 20 Jan 2004, 12:38:07 »
Kick the crew out and delete them individualy. Then delete the vehicle.

Code: [Select]
{_x SetPos [0,0,0] ; _x DeleteVehicle} ForEach (Crew _Vehicle)
DeleteVehicle _Vehicle

gundernak

  • Guest
Re:Delete Vehicle Command
« Reply #4 on: 20 Jan 2004, 12:40:01 »
1:
try to create empty vehicle, with the crew (moveInCommander, moveInDriver, moveInGunner)

name these 4 units

this way sure you will be able to delete them

2:
or try to use this together:

deleteVehicle commander tankname; deleteVehicle gunner tankname; deleteVehicle driver tankname; deleteVehicle tankname

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:Delete Vehicle Command
« Reply #5 on: 20 Jan 2004, 19:16:05 »
What version of Flashpoint are you using, because it worked on mine,

I test everything before i post, and it was the exact line copied from the trigger, with the name changed.

BTW, if you want i can send you a sample mission,

SILENTHUNTER
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]

Offline SilentHunter

  • Members
  • *
  • frozen leg'o'lamb (every gamers most loved weapon)
Re:Delete Vehicle Command
« Reply #6 on: 20 Jan 2004, 20:44:29 »
Demmun i whipped up a example mission for you

but ofpec wouldnt have it so i set up a freewebs account for it

http://www.freewebs.com/123433241/ExampleMissionForDemmun.Intro.zip

That will take you straight to the download, its only 2K

SILENTHUNTER
[size=4.5]NERDS HAVE FEELINGS TOO! [/size] [size=2.5]*adjusts glasses*[/size]