Forum Jump :

Author Message


Posts: 13

Level: Member

Country: ca
Occupation: retired, writer
In-game name:

#1 Posted at 2014-10-23 01:54        
Hi folks.

I've been scripting since Flashpoint and, as you all know, things keep changing. My suite of scripts created units and vehicles at six markers. The markers are created randomly at start and moved during play. Triggers detect the approach of enemy units and the "headquarters and command posts" are moved to random locations.

The problem is they are sometimes put in water and my new units are left sinking or swimming. I have tried checking the third position (select 0) of units to see if they are less than 1. I've tried an Arma2 function supposed to detect water, no luck. I need help.

If I can't detect water or under water, is there a function to detect land?

Author Message


Posts: 433

Level: Member

Country: de
Location: Bavaria
Occupation: Communications Designer
Age: 36
In-game name: Tajin

#2 Posted at 2014-10-23 09:38     

I'm pretty sure that one works. Maybe your problem lies elsewhere?

Aside from that, you can look at this command:

quite useful for random placement of things. It allows you to avoid water in the first place and also gives you some extra options.

There are a lot of very capable people on this forum, willing to spend some of their time to help you out. So if you have a problem, it surely isn't too much to ask that you atleast take the time to describe it properly. Thanks.