Jump to content
Sign in to follow this  
roguetrooper

Check if unit is swimming/in water?

Recommended Posts

Is there a possibility to check if a unit is

* swimming (infantry)

* swimming (vehicles, such as boats and M113)

* under water (drowned vehicles that can't swim)

Infantry could be checked for their current animation (?)

AswmPercMstpSnonWnonDnon,
AswmPercMwlkSnonWnonDf,
AswmPercMrunSnonWnonDf,
AswmPercMsprSnonWnonDf,
AswmPercMstpSnonWnonDnon_AswmPercMrunSnonWnonDf,
AswmPercMrunSnonWnonDf_AswmPercMstpSnonWnonDnon,
AswmPercMrunSnonWnonDf_AmovPercMstpSnonWnonDnon_forgoten

Is there a command that returns a unit's current animation?

Is there a possibility to check if a unit is in water (swimming or drowned)?

I've searched the forum and the Biki, but found nothing how it could be done.

Share this post


Link to post
Share on other sites

Hi..

Short example:

if("AswmPercMstpSnonWnonDnon" == AnimationState player)then{true}else{false};

:rolleyes:

Share this post


Link to post
Share on other sites

I guess surfaceIsWater could be critical. There are places where a player can stand in water.

:o

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  

×