OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terrazasjs on 03 Jun 2003, 01:57:46

Title: how to delete a unit ingame?
Post by: terrazasjs on 03 Jun 2003, 01:57:46
I have a mission where i use a plane to transport paratroopers;how can i delete the plane after the waypoint is reached?do I need to create another waypoint for the plane and put something on the activation line to delete it? ??? if you know how to do this can you show me?and thank you for your time
Title: Re:how to delete a unit ingame?
Post by: gadolinite on 03 Jun 2003, 02:28:27
That is not hard to do.

If you want the unit to delete itself when he reaches the waypoint...

Put this in waypoint on activation for the waypoint:

 :-*deletevehicle 'nameofplane' :-*

Note this...
The pilot(s) will eject after the unit deletes itself.  If the plane deletes itself over water, the pilots will die.

If you want to delete the pilot(s)
'planename'D this deletes the driver of the plane, the name of the plane with a cap D in front of it, this goes for gunner, and there are titles for commander, probabley C
Title: Re:how to delete a unit ingame?
Post by: terrazasjs on 03 Jun 2003, 07:52:05
thank you works fine for the kind D of mission that i making ;D
Title: Re:how to delete a unit ingame?
Post by: gadolinite on 04 Jun 2003, 03:11:04
solve the issue, since I solved your problem