Jump to content
Sign in to follow this  
1para{god-father}

check Dynamic Object Compositions is destroyed

Recommended Posts

I have been playing with the Dynamic Object Compositions and need to know a way to check to see if a check a Dynamic Object Compositions has been destroyed ?

Is that possible ?

_newComp = [(getPos this), (getDir this), "Firebase1_RU"] call (compile (preprocessFileLineNumbers "ca\modules\dyno\data\scripts\objectMapper.sqf"));

Share this post


Link to post
Share on other sites

Return value is an array of all the objects.

Check if everything has been destroyed (incl. sandbags etc), not so good:

waitUntil {{damage _x > 0.9} forEach _newComp};

waitUntil {{!alive _x} forEach _newComp};

Or just a specific object:

waitUntil {{damage (_newComp select 1) > 0.9}};

waitUntil {!alive (_newComp select 1)};

You can view the objects with:

player sideChat format["objects: %1",_newComp];

Edited by sxp2high

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  

×