Jump to content
Sign in to follow this  
malcon

Help with hide body

Recommended Posts

For example: i walk to a dead body and in my player action i can hide the body

Thanks

Share this post


Link to post
Share on other sites

Well there are two ways to do this:

  1. Add an Killed-Eventhandler to every unit and once the handler is fired, add an action to the unit who died.
  2. Check if the player's cursor is pointing to a dead unit and add an action to the player

The latter option is slightly more complex but has the advantage that dynamically spawned units won't have to be configured with an eventhandler.

I'd suggest the first option though because it's easier to implement even for newbies :D

The problem is not adding the action, but the "animation" to play when you want to hide a body.

There's this features in DayZ and when you hide a body, the body sinks into the ground until it's away (?!).

So you have to first decide what the body should do upon hiding - the rest is easy :D

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  

×