Jump to content
Smart Games

Check, if position is in/over water

Recommended Posts

I have the problem, that some units in my mission spawn into water.

Any Idea, how to find out, if the position they spawn on is water?

Share this post


Link to post
Share on other sites

Hey man, you surely want to check THIS and THIS...

Also, how do you spawn the units? ...hard to help with partial info, mate.

More or less, I'm guessing you need something like:

if (surfaceIsWater) exitWith {};

Not sure if it is correct, but you get the idea...

  • Like 2

Share this post


Link to post
Share on other sites

if (surfaceIsWater getPos _unit) then {hint "unit blabla is feet wet"};

 

if you don't want to spawn in water:

- check if you're not spawning in [0,0,0] due to a bad code;

- find an ashore position using bis_fnc_safePos

  • Like 3

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

×