OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 03 May 2003, 22:59:54
-
I am trying to make a random patrol script, but I need to figure out if the gamelogic (which is camcreated) is created over water.
-
Don't know the answer.
However I do know that by using placement radius on units, probability of presence on units and placment radius on waypoints you can make seriously random patrols. Depending on what you are trying to do it may not be necessary to use a script at all.
-
There's this thing called functions.. and then there's this guy called snYpir..
http://www.ofpec.com/editors/funcref.php?filter_func=19
and at that link there's a function script which detects if over water, made by snYpir
:D
-
not by snYpir :P
dkm made it ;) :P
snYpir only made it function
Returns true if the unit passed in is over the water. Code ripped out of DKM Rastavovich's DKMM_Choppers addon.
;)
nd it works only on official islands
LCD OUT