malcon 10 Posted April 17, 2013 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
killzone_kid 1331 Posted April 17, 2013 should be available by default, no? Share this post Link to post Share on other sites
malcon 10 Posted April 17, 2013 No Thats why i am asking is there a way Share this post Link to post Share on other sites
xxanimusxx 2 Posted April 17, 2013 Well there are two ways to do this: Add an Killed-Eventhandler to every unit and once the handler is fired, add an action to the unit who died. 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
killzone_kid 1331 Posted April 17, 2013 there is a command hideBody http://community.bistudio.com/wiki/hideBody does exactly what hide body does, no need to decide on animation. Share this post Link to post Share on other sites