OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Nemesis6 on 23 Feb 2007, 03:47:35

Title: Need help with water splash effect
Post by: Nemesis6 on 23 Feb 2007, 03:47:35
I know how to detect water in the old OFP, but that method doesn't work in ArmA because, obviously, a better method for doing so has been devised. Can anyone help me with that? Maybe something involving the getposASL command was my first idea, but.. Bah.

Anyway, the script is in this demo mission attached. Help appreciated.
Title: Re: Need help with water splash effect
Post by: myke13021 on 23 Feb 2007, 04:08:52
there's one simple command to detect if there's water or not:

Code: [Select]
surfaceiswater [x, y]

and it returns a simple boolean (true or false). But you guessed that. Sometimes i'm talking too much.  :whistle: