OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: xXNismoXx on 30 Dec 2003, 11:09:17

Title: Dead Boddie Script
Post by: xXNismoXx on 30 Dec 2003, 11:09:17
i'm looking for a sqs file or anything that will work that will remove dead bodies of playable and non-playable men.  Help would be greatly appreciated.
Title: Re:Dead Boddie Script
Post by: Zombie on 30 Dec 2003, 14:33:06
this is what I use, make a global trigger for each unit, condition:
!(alive unitname)
on activation:
[ unitname ] exec "AP.SQS"
AP.SQS:
_body =_this select 0
~15
deleteVehicle _body
 
exit  
Title: Re:Dead Boddie Script
Post by: xXNismoXx on 30 Dec 2003, 17:04:02
do I need to download the "ap.sqs" file?, also will this delete enemy ai bodies?

darn, if this is it, this will take me awhile  :'(
Title: Re:Dead Boddie Script
Post by: xXNismoXx on 30 Dec 2003, 18:41:06
OMG, sry chief, I need at least a pot of coffee for my brain to work in the morning, thank you very much, works great !

for those of you interested...

cut and paste this:

_body =_this select 0
~15
deleteVehicle _body

exit  

Its your "ap.sqs" file, and add it to your mission folder,
then make a trigger as zombie wrote.

thanks again zombie ;)
Title: Re:Dead Boddie Script
Post by: xXNismoXx on 30 Dec 2003, 20:19:08
one last q for ya, if the game laggs in mp will the delete body script fail? all my triggers (all 59 of em) are on "once".  ??? should i change them to repetidly?