OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: taff_noble on 20 Jul 2004, 21:16:57

Title: spawning
Post by: taff_noble on 20 Jul 2004, 21:16:57
hi im making a mission were i want units to spawn when i activate a trigger which i know is possible but i was wondering if it is possible to remove these units when im no longer present in the area
Title: Re:spawning
Post by: j-man on 20 Jul 2004, 21:26:09
Code: [Select]
deleteVehicle unit
Might work. Never seems to work for me though :P
Title: Re:spawning
Post by: Artak on 20 Jul 2004, 21:46:00
When you're spawning you name the group or individual units. When you want to get rid of them, just use
"deletevehicle _x" foreach units groupname for whole group or
deletevehicle unitname for individuals