Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Detect being on water
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Maelstrom_" data-source="post: 127535" data-attributes="member: 7007"><p>There is a GUI condition to detect water, its a Boolean thing. I'll open up the editor and get the line <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p>______________________________________________________________</p><p>Water Check</p><p> Events</p><p> Time - Every 0.50 seconds of game time</p><p> Conditions</p><p> Actions</p><p> Set TempPoint = (Position of (w/e unit))</p><p> If (All Conditions are True) then do (Then Actions) else do (Else Actions)</p><p> If - Conditions</p><p> (Terrain pathing at TempPoint of type Floatability is off) Equal to True</p><p> Then - Actions</p><p> Set TheGuyIsInWater = False</p><p> Else - Actions</p><p> Set TheGuyIsInWater = True</p><p> Custom script: call RemoveLocation(udg_TempPoint)</p><p>______________________________________________________________</p><p></p><p>Ummm something like that XD</p><p>Then you can use the Boolean variable elsewhere in another trigger.</p></blockquote><p></p>
[QUOTE="Maelstrom_, post: 127535, member: 7007"] There is a GUI condition to detect water, its a Boolean thing. I'll open up the editor and get the line :D ______________________________________________________________ Water Check Events Time - Every 0.50 seconds of game time Conditions Actions Set TempPoint = (Position of (w/e unit)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Terrain pathing at TempPoint of type Floatability is off) Equal to True Then - Actions Set TheGuyIsInWater = False Else - Actions Set TheGuyIsInWater = True Custom script: call RemoveLocation(udg_TempPoint) ______________________________________________________________ Ummm something like that XD Then you can use the Boolean variable elsewhere in another trigger. [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Detect being on water
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top