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 02-03-2009, 07:12 AM   #1
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
Question What event does EVENT_UNIT_HIDDEN respond to?

Does anyone know what event this fires? I tried hiding a unit via ShowUnit native but it seems that it doesn't work. Thanks for any help.
__________________
Where's mah sig?
chobibo is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 02-03-2009, 08:42 AM   #2
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

never saw map using this.

(i take anything i like from maps, but looks like no map uses this, just like unsafe variable event)

also there is reverse detected event.
DioD is offline   Reply With Quote
Old 02-03-2009, 04:11 PM   #3
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

Maybe this is an unimplemented code?
__________________
Where's mah sig?
chobibo is offline   Reply With Quote
Old 02-03-2009, 07:53 PM   #4
Valdez
User
 
Valdez's Avatar
 
Join Date: Aug 2004
Posts: 253

Valdez has little to show at this moment (9)

Send a message via Yahoo to Valdez
Default

Maybe its for when a specific unit becomes invisible?
__________________
CHALS v1.4d is out and better than ever! Get it here!
Valdez is offline   Reply With Quote
Old 02-03-2009, 09:28 PM   #5
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

I tried it on Blademaster's windwalk and it doesn't fire.
__________________
Where's mah sig?
chobibo is offline   Reply With Quote
Old 02-03-2009, 09:41 PM   #6
Fledermaus
default string
 
Fledermaus's Avatar
 
Join Date: May 2006
Posts: 705

Submissions (1)

Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)Fledermaus is a jewel in the rough (194)

Send a message via MSN to Fledermaus
Default

Tried Shadowmeld?
Fledermaus is offline   Reply With Quote
Old 02-03-2009, 10:01 PM   #7
Archmage Owenalacaster
Laughs Derisively
 
Archmage Owenalacaster's Avatar


Project Member: PoC
 
Join Date: Jun 2006
Posts: 649

Submissions (1)

Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)

Race-Building Contest #1 Winner

Default

I've tried both. Neither fires.

EDIT: In response to Valdez, common.j has constants EVENT_PLAYER_UNIT_HIDDEN and EVENT_UNIT_HIDDEN; it can be either a specific unit or not.
__________________
I enjoy small text.
Resources: Custom Race System
JademusSreg.950, North American region on StarCraft 2

Last edited by Archmage Owenalacaster : 02-03-2009 at 10:10 PM.
Archmage Owenalacaster is offline   Reply With Quote
Old 02-04-2009, 12:52 AM   #8
TEC_Ghost
User
 
TEC_Ghost's Avatar
 
Join Date: Jul 2002
Posts: 416

TEC_Ghost will become famous soon enough (65)TEC_Ghost will become famous soon enough (65)TEC_Ghost will become famous soon enough (65)

Default

I just did a fuck ton of tests, couldn't get anything either.
__________________

Projects
TEC_Ghost is offline   Reply With Quote
Old 02-04-2009, 02:57 AM   #9
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Take a look at the part in which it is declared:

Collapse JASS:

    constant playerunitevent EVENT_PLAYER_UNIT_ATTACKED                 = ConvertPlayerUnitEvent(18)
    constant playerunitevent EVENT_PLAYER_UNIT_RESCUED                  = ConvertPlayerUnitEvent(19)

    constant playerunitevent EVENT_PLAYER_UNIT_DEATH                    = ConvertPlayerUnitEvent(20)
    constant playerunitevent EVENT_PLAYER_UNIT_DECAY                    = ConvertPlayerUnitEvent(21)

    constant playerunitevent EVENT_PLAYER_UNIT_DETECTED                 = ConvertPlayerUnitEvent(22)
    constant playerunitevent EVENT_PLAYER_UNIT_HIDDEN                   = ConvertPlayerUnitEvent(23)

    constant playerunitevent EVENT_PLAYER_UNIT_SELECTED                 = ConvertPlayerUnitEvent(24)
    constant playerunitevent EVENT_PLAYER_UNIT_DESELECTED               = ConvertPlayerUnitEvent(25)
Notice the spacing. 100% sure it has something to do with DETECTED but the question is, what does DETECTED do?

Edit: If this was left over code, there would be a comment about such thing. Like //for compat or something.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 02-04-2009, 10:12 AM   #10
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

Unit can be detected by other units, neutral creeps may be.

Also there is Expansion event, soo it can be used for burrowed units.

as i said: there is no maps using this event.
DioD is offline   Reply With Quote
Old 02-04-2009, 02:55 PM   #11
Archmage Owenalacaster
Laughs Derisively
 
Archmage Owenalacaster's Avatar


Project Member: PoC
 
Join Date: Jun 2006
Posts: 649

Submissions (1)

Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)

Race-Building Contest #1 Winner

Default

I tested burrowing, invisibility, shadowmeld, wind walk, entering transport cargo, locust, and hiding units with triggers. I didn't test gold mines, or entering the fog of war with 0 sight range.
__________________
I enjoy small text.
Resources: Custom Race System
JademusSreg.950, North American region on StarCraft 2
Archmage Owenalacaster is offline   Reply With Quote
Old 02-04-2009, 07:50 PM   #12
Valdez
User
 
Valdez's Avatar
 
Join Date: Aug 2004
Posts: 253

Valdez has little to show at this moment (9)

Send a message via Yahoo to Valdez
Default

Well given Vexs post I would say maybe it has to do something with the Magic Sentry ability being able to detect invisible units but I could be wrong.

IE: A tower sees an Invis unit but does not attack it thus breaking its invisibility and so if the invisible unit moves away maybe that would count as becoming hidden again??
__________________
CHALS v1.4d is out and better than ever! Get it here!
Valdez is offline   Reply With Quote
Old 02-05-2009, 07:16 AM   #13
saw792
User
 
Join Date: Jul 2008
Posts: 30

saw792 is on a distinguished road (13)

Default

I tested magic sentry. It doesn't fire HIDDEN or DETECTED with an enemy invis unit moving in and out of it's range.
saw792 is offline   Reply With Quote
Old 02-05-2009, 08:03 AM   #14
PandaMine
Panda > You
 
PandaMine's Avatar
 
Join Date: May 2006
Posts: 500

Submissions (4)

PandaMine has a spectacular aura about (96)PandaMine has a spectacular aura about (96)PandaMine has a spectacular aura about (96)PandaMine has a spectacular aura about (96)

Send a message via MSN to PandaMine
Default

According to pyrogasm, the event is fired when you use the function call HideUnit(MyUnit, true)
cbf testing it now, but it would make sense
__________________
PandaMine's Creations:

Last edited by PandaMine : 02-05-2009 at 08:05 AM.
PandaMine is offline   Reply With Quote
Old 02-05-2009, 08:09 AM   #15
Archmage Owenalacaster
Laughs Derisively
 
Archmage Owenalacaster's Avatar


Project Member: PoC
 
Join Date: Jun 2006
Posts: 649

Submissions (1)

Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)Archmage Owenalacaster is a jewel in the rough (180)

Race-Building Contest #1 Winner

Default

Quote:
Originally Posted by PandaMine
According to pyrogasm, the event is fired when you use the function call HideUnit(MyUnit, true)
cbf testing it now, but it would make sense
No such function. Bj ShowUnitHide(unit) and native ShowUnit(unit,false) are your options, sir.
__________________
I enjoy small text.
Resources: Custom Race System
JademusSreg.950, North American region on StarCraft 2

Last edited by Archmage Owenalacaster : 02-05-2009 at 08:12 AM.
Archmage Owenalacaster 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 12:57 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