wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 08-10-2009, 11:17 PM   #1
Fluff
or your money back!
 
Fluff's Avatar
 
Join Date: Aug 2004
Posts: 541

Submissions (1)

Fluff will become famous soon enough (64)Fluff will become famous soon enough (64)Fluff will become famous soon enough (64)

Default If a point is in water

Is there a way to detect if a unit or a point is on water? I need to have something like this as a condition so that a unit will be created at a target location but only if there is water there.
Fluff is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 08-10-2009, 11:39 PM   #2
chobibo
100% Genuine Retard!
 
chobibo's Avatar
 
Join Date: Jan 2007
Posts: 797

chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)

Send a message via Yahoo to chobibo
Default

IsTerrainPathable(0,0,PATHING_TYPE_FLOATABILITY)==false
__________________
Where's mah sig?
chobibo is offline   Reply With Quote
Old 08-11-2009, 12:17 AM   #3
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

I still recommend this. It distinguishes between shallow water and deep water. If you just want to know 'water,' then chobibo's will work fine. (First two arguments are X,Y)
__________________
Rising_Dusk is offline   Reply With Quote
Old 08-11-2009, 12:27 AM   #4
chobibo
100% Genuine Retard!
 
chobibo's Avatar
 
Join Date: Jan 2007
Posts: 797

chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)chobibo has a spectacular aura about (101)

Send a message via Yahoo to chobibo
Default

It looks like dusk's system works better than just using the native implementation, which is bugged.
__________________
Where's mah sig?
chobibo is offline   Reply With Quote
Old 08-11-2009, 03:22 AM   #5
Fluff
or your money back!
 
Fluff's Avatar
 
Join Date: Aug 2004
Posts: 541

Submissions (1)

Fluff will become famous soon enough (64)Fluff will become famous soon enough (64)Fluff will become famous soon enough (64)

Default

Ok, thanks guys. I will try one or both of these methods tonight.

EDIT: I got Dusk's function to work first try so that's good :P

Last edited by Fluff : 08-11-2009 at 09:54 PM.
Fluff is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:07 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services