-
Notifications
You must be signed in to change notification settings - Fork 84
Eventhandlers
These are similar to Bohemias Eventhandler, but are added and removed via function.
See:
https://github.com/KoffeinFlummi/AGM/wiki/Functions#agm_core_fnc_addcustomeventhandler
https://github.com/KoffeinFlummi/AGM/wiki/Functions#agm_core_fnc_removecustomeventhandler
####Name: "interactionMenuOpened"
Assgined to: unit
Execution: Any time the player opens the AGM Interaction Menu.
#####Arguments:
0: unit the eventhandler is assigned to.
1: target (same as Unit for self interactions)
2: type (0 for interaction, 1 for self interaction)
####Name: "killedByFriendly"
Assigned to: unit
Execution: Any time the unit is killed by a unit on the same side. Requires friendly fire messages module to be placed and enabled.
#####Arguments:
0: unit the eventhandler is assigned to.
1: friendly that killed the unit the eventhandler is assigned to.
####Name: "playerChanged"
Assigned to: missionNamespace
Execution: Any time the players controlled avatar changes. E.g: After team switch, or respawning.
#####Arguments:
0: The new controlled unit.
1: The previously controlled unit.
####Name: "knockedOut"
Assigned to: unit
Execution: Any time the players falls unconscious.
#####Arguments:
0: unit the eventhandler is assigned to.
####Name: "wokeUp"
Assigned to: unit
Execution: Any time the players wakes up from unconsciousness.
#####Arguments:
0: unit the eventhandler is assigned to.
####Name: "preventedDeath"
Assigned to: unit
Execution: Any time the player is prevented from dying from a wound by the medical module prevent death settings.
#####Arguments:
0: unit the eventhandler is assigned to.