OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 03 May 2003, 22:59:54

Title: Over land or over water
Post 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.
Title: Re:Over land or over water
Post by: macguba on 03 May 2003, 23:39:30
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.
Title: Re:Over land or over water
Post by: Artak on 03 May 2003, 23:45:24
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
Title: Re:Over land or over water
Post by: LCD on 04 May 2003, 03:31:41
not by snYpir :P

dkm made it ;) :P

snYpir only made it function

Quote
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