OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: killjoy73au on 29 Jan 2005, 07:46:11
-
I was wondering how to delete units off the map? e.g have a sniper shoot some dude then have the sniper deleted or delete dead bodies so they dont clutter up the memory
-
I'm not sure about deleting the sniper, but try this script for deleting dead bodies:
http://www.ofpec.com/editors/browse.php?browsewhat=1&start=100
Its at the top of the page, called 'lag eliminator' :thumbsup:
-
To delete the sniper:
- Name the sniper Sniper1
- Make a trigger: East Not Present
- Put this in the on activation field: DeleteVehicle Sniper1
When the west sniper kills the east guys, it will remove the sniper!