# Triggering Game User
Grammar — Triggering Game User
Flags —Native
|Function
Returns the triggering Game User as an integer.
Returns — int
<preset::GameUserId>
native int EventGameUser();
# Supported triggers
- Unit Is Clicked — TriggerAddEventUnitClick
- Unit Is Highlighted — TriggerAddEventUnitHighlight
- Unit Is Selected — TriggerAddEventUnitSelected
- Player Changes Alliances — TriggerAddEventPlayerAllianceChange
- Player Leaves Game — TriggerAddEventPlayerLeft
- Player Property Changed — TriggerAddEventPlayerPropChange
- Unit Acquires Target — TriggerAddEventUnitAcquiredTarget
- Unit Arming Progress — TriggerAddEventUnitArmMagazineProgress
- Unit Is Attacked (Deprecated) — TriggerAddEventUnitAttacked
- Unit Construction Progress — TriggerAddEventUnitConstructProgress
- Unit Dies — TriggerAddEventUnitDied
- Unit Enters/Leaves Range Of Unit — TriggerAddEventUnitRange
- Unit Enters/Leaves Region — TriggerAddEventUnitRegion
- Unit Gains Experience — TriggerAddEventUnitGainExperience
- Unit Gains Experience Level — TriggerAddEventUnitGainLevel
- Unit Is Being Removed — TriggerAddEventUnitRemoved
- Unit Is Issued Order — TriggerAddEventUnitOrder
- Unit Loads/Unloads Cargo — TriggerAddEventUnitCargo
- Unit Property Changes — TriggerAddEventUnitProperty
- Unit Research Progress — TriggerAddEventUnitResearchProgress
- Unit Specialization Progress — TriggerAddEventUnitSpecializeProgress
- Unit Starts Attacking (Deprecated) — TriggerAddEventUnitStartedAttack
- Unit Training Progress — TriggerAddEventUnitTrainProgress
- Chat Message — TriggerAddEventChatMessage
- Unit Uses Ability — TriggerAddEventUnitAbility
- Custom Dialog Dismissed — TriggerAddEventCustomDialogDismissed
- Unit Takes Damage — TriggerAddEventUnitDamaged
- Dialog Item Is Used — TriggerAddEventDialogControl
- Unit Changes Ability Auto Cast State — TriggerAddEventUnitAbilityAutoCastChange
- Target Mode Updated — TriggerAddEventTargetModeUpdate
- Key Pressed — TriggerAddEventKeyPressed
- Button Pressed — TriggerAddEventButtonPressed
- Mouse Clicked — TriggerAddEventMouseClicked
- Mouse Moved — TriggerAddEventMouseMoved
# Related
Category: Game User / Game User Settings
- Name of Game User —
text
— GameUserName - Handle of Game User —
string
— GameUserHandle - Triggering Game User —
int
<preset::GameUserId> — EventGameUser
# Examples
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:688
lv_pingType = (EventPingOption());
if ((lv_pingType != 4)) {
libLbty_gf_PingPlay(lv_pingType, EventPlayer(), EventPingPoint(), EventGameUser(), EventPingUnitType(), EventPingUnitPosition(), EventPingUnitControlPlayer());
}