HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Goblin Zepplin

08-06-2006, 06:16 PM#1
ShadowDestroyer
If you pick every hero in the playable map area, will it pick heros inside of goblin zepplins?
08-06-2006, 06:22 PM#2
oNdizZ
for a short answer... no
hero's inside a zeppelin will not work with "Units in (Playable Map Area)"
08-06-2006, 06:30 PM#3
ShadowDestroyer
How do you detect units that leave a zepplin. Also, if the zepplin dies, does it count the unit as exiting the zepplin?
08-06-2006, 06:31 PM#4
masda70
Don't enumerate units in a rect, enumerate player units or units of type.

Collapse JASS:
native GroupEnumUnitsOfType                 takes group whichGroup, string unitname, boolexpr filter returns nothing
native GroupEnumUnitsOfPlayer               takes group whichGroup, player whichPlayer, boolexpr filter returns nothing

To detect whether the enum unit is in a transport or not use the following natives:
Collapse JASS:
constant native IsUnitInTransport   takes unit whichUnit, unit whichTransport returns boolean
constant native IsUnitLoaded        takes unit whichUnit returns boolean
08-06-2006, 06:31 PM#5
oNdizZ
ehumm. works with Units Owned By <PLAYER>
now, seriously, why am i testing this for you when you can do it yourself? :)
just open the WorldEditor and do some debugmsges.

edit: hi mr fast-typer -_^
08-06-2006, 06:37 PM#6
ShadowDestroyer
Wait, I am confused Masda70... I actually use GUI :-(
08-06-2006, 06:39 PM#7
oNdizZ
i did that aswell when i just tested.
"Units Owned By Player" will include the heros inside the zeppelins.
08-06-2006, 06:41 PM#8
ShadowDestroyer
Thanks!