Jump to content
Sign in to follow this  
DaneVik

Where Is The Hide Body Script For DM TDM

Recommended Posts

Where Is The Hide Body Script For DM, TDM. there was One But cant remember the name of it. i get sick of looking at those bodys every here plus if your DM'ing it can get to be alot of bodys and eventualy lagg. Please help.

Share this post


Link to post
Share on other sites

Put a trigger in your mission with the condition 'Alive Player' and set it to repeatedly, then in the activation box put 'Player exec "killed.sqs"'

Now create a script called killed.sqs in your missions folder with:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_unit = _this

~20

deletevehicle _unit

exit

voila, a simple body deletion script

Share this post


Link to post
Share on other sites

Mission editing questions belong in mission editing and scripting, moving.

Share this post


Link to post
Share on other sites

I don't agree with korax, there is a better way!

Create a script called DeleteBody.sqs

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">;DeleteBody

;Catch Variables

_unit = _this select 0

;Condition to work

@ ! Alive _unit

;Time before deleting

~20

;Deleting...

deletevehicle _unit

exit

And put in the init field of the unit you want to delete when dead: [this] exec "DeleteBody.sqs"

Share this post


Link to post
Share on other sites

That one doesnt work after the unit respawns once, and it also has an @ condition which can cause performance drops wink_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×