Jump to content
Sign in to follow this  
st!gar

Disappearing corpses; Bootcamp Virtual Training.

Recommended Posts

I'll make it short.

In "Virtual Training", the enemy AI Entities disappear video game-style upon being killed. I am trying to enable this in the editor, to no avail.

I assumed it was something as easy as adding a Game Logic, but surprisingly not.

Please help.

Share this post


Link to post
Share on other sites

in the VR mission it is done like this:

[_unit, nil, 5] call BIS_fnc_VREffectKilled;

but don't ask me what the parameters stand for as it is nothing documented about this function

E:

/*

Author: Karel Moricky

Description:

Delete body of a virtual soldier after he's killed

Parameter(s):

0: OBJECT

1 (Optional): BOOL - true to delete the body right away, false to add KILLED event handler which will delete it after death

2 (Optional): NUMBER - time in seconds before the body disappears

Returns:

BOOL

*/

it seems that the function needs to be executet when the unit is spawned/initialized

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  

×