Skip to content
PabstMirror edited this page Jan 1, 2015 · 6 revisions

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" https://community.bistudio.com/wikidata/images/e/e8/arguments_local.gif https://community.bistudio.com/wikidata/images/5/52/effects_local.gif 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" https://community.bistudio.com/wikidata/images/2/25/arguments_global.gif https://community.bistudio.com/wikidata/images/5/52/effects_local.gif 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" https://community.bistudio.com/wikidata/images/5/52/effects_local.gif 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" https://community.bistudio.com/wikidata/images/2/25/arguments_global.gif https://community.bistudio.com/wikidata/images/5/52/effects_local.gif Assigned to: unit
Execution: Any time the players falls unconscious.
#####Arguments:
0: unit the eventhandler is assigned to.


####Name: "wokeUp" https://community.bistudio.com/wikidata/images/2/25/arguments_global.gif https://community.bistudio.com/wikidata/images/5/52/effects_local.gif Assigned to: unit
Execution: Any time the players wakes up from unconsciousness.
#####Arguments:
0: unit the eventhandler is assigned to.


####Name: "preventedDeath" https://community.bistudio.com/wikidata/images/2/25/arguments_global.gif https://community.bistudio.com/wikidata/images/5/52/effects_local.gif 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.

Clone this wiki locally