| 09-29-2008, 04:07 PM | #1 |
As the title says: I assume these are a generic event for trackables, which don't know. Anyone have anymore input? JASS:call TriggerRegisterGameEvent(trigger1, EVENT_GAME_TRACKABLE_HIT) call TriggerRegisterGameEvent(trigger2, EVENT_GAME_TRACKABLE_TRACK) Edit: These are just added so you don't confuse the top ones with these ones. These are for registering each trackable. JASS:call TriggerRegisterTrackableHitEvent(trigger1, Trackable[i]) call TriggerRegisterTrackableTrackEvent(trigger2, Trackable[i]) |
| 09-29-2008, 07:42 PM | #2 |
TriggerRegisterTrackableHitEvent registers when a player clicks on a trackable and TriggerRegisterTrackableTrack event registers when a player moves their mouse over a trackable, though it is somewhat unreliable and slow. |
| 09-29-2008, 08:01 PM | #3 |
Sorry I meant the two top triggers which are highlighted. The other two I meant as "I already know what these do, so please don't confuse the top two with these." Anyways, forget the bottom ones. |
| 09-29-2008, 08:33 PM | #4 |
Maybe backwards compatibility? kind of like EVENT_UNIT_ISSUED_UNIT_ORDER. |
| 09-29-2008, 10:00 PM | #5 |
Probably just generic ones activated by any trackable? |
| 09-30-2008, 01:57 AM | #6 | |
Quote:
|
| 09-30-2008, 03:35 AM | #7 | ||
Quote:
Quote:
|
| 09-30-2008, 06:49 AM | #8 |
JASS:EVENT_UNIT_ISSUED_USER_ORDER==EVENT_UNIT_ISSUED_TARGET_ORDER It's a constant code that generates a constant PlayerUnitEvent handle, the thing is USER_ORDER was an older version of TARGET_ORDER, it was retained in order for older maps, which use it, to be still playable, that's what I mean when I said backwards compatibility. Apparently these Events are used to be able to compare which event fired, consider this trigger: JASS:function WhichEventFired takes nothing returns boolean local eventid id=GetTriggerEventId() if id==EVENT_GAME_TRACKABLE_HIT then // Do something if the event fired was a trackable hit event elseif id==EVENT_GAME_TRACKABLE_TRACK then // Do something if the event fired was a trackable track event endif return true endfunction function InitTrig takes nothing returns nothing local trigger t=CreateTrigger() local trackable tr=CreateTrackable("", 0, 0, 0) call TriggerRegisterTrackableHitEvent(t, tr) call TriggerRegisterTrackableTrackEvent(t, tr) call TriggerAddCondition(t, Condition( function WhichEventFired) endfunction using these eventid handles, you can determine which event fired. Now if only blizzard would create a RemoveEvent native.... |
| 09-30-2008, 02:17 PM | #9 |
I see. Thank you. EVENT_GAME_TRACKABLE_HIT and EVENT_GAME_TRACKABLE_TRACK seem kind of useless. You already have different events for trackables so why would you want to know which one fired. |
