Jump to content
Sign in to follow this  
Guest

Making a dead body stay for entire mission?

Recommended Posts

Guest

I have a unit that on mission startup I use setdamage 1 to kill him. I would like to stop his body from disappearing during the entire mission or atleast 10-20 mins.

This is an AI unit, not a player body. Is this possible?

Share this post


Link to post
Share on other sites

bodys shouldnt disapear until you use the garbage collector module or a script as far as i know.

Share this post


Link to post
Share on other sites
bodys shouldnt disapear until you use the garbage collector module or a script as far as i know.

Yes. A dead body (player or AI) will never be removed from a mission unless a script, module or maybe an addon tells the game engine to do it.

Deafault is to leave dead bodies as they are. If they are removed something is actively telling the game engine to do it.

Share this post


Link to post
Share on other sites

I would probably use something like an event handler that execs the line "

this enablesimulation false
"; this would take the dead unit out of the games scope and leave the model behind, it wont collide, animate or be useable for gear though.

Share this post


Link to post
Share on other sites

Borrow your place and ask:

I still don't know how to use GarbageCollect Module. Just put it on the map, that's all??

Now I use scripts to delete every deadbody.

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  

×