API/Event Bus

Event Bus is an API used to raise and listen for mod events. Check Discord for latest version. Archive content goes to ModsShared folder of DevKit. It contains components and interfaces used to implement system.
=== Character events ===
BP_AC_EventBus_Character component can be attached server side to player character or controller. There predefined events to raise system event on client or server. Use SignalEventRaised event dispatcher to bind on system events.
=== Global events ===
BP_AC_EventBus_ModController component should be attached server side to your mod controller, which should implement interface BPI_EventBus_GlobalEventInterface. There predefined event to raise global system event on all components attached to mod controllers. Use SignalEventRaised event dispatcher to bind on system events.
=== Events ===
Name 	Type 	Description
EventName	Name 	Event name
EventData	String Array	Additional event parameters
=== Restricted Exiles events ===
Currently all events raised only for characters and not as global.
==== RE_Trap_Triggered ====
Raised when Trap Chest triggered by character.
Parameter Index	Description 	Note
0 	Character name	Name of character who triggered trap
1 	Location 	Location where trap was triggered in X,Y,Z format
==== RE_Unconscious_Triggered ====
Raised when unconscious state triggered on character.
Parameter Index	Description	Note
0 	Damage type	Type of damage which causing state. Can be set to Health or Concussive.
1 	Causer type	Type of state causer. Can be set to Player, NPC, Unknown or None.
2 	Causer name	Name of state causer. For types Player and NPC it's character name. For Unknown type it's class name. For None it's empty.
3 	Location 	Location of character in X,Y,Z format
Causer type Unknown usually used for actors which are not players or NPCs. Type None used when causer not defined.
==== RE_Unconscious_Death ====
Raised when all death replacement were used and character actually dies.
Parameter Index	Description	Note
0 	Damage type	Type of damage which causing death. Always set to Health.
1 	Causer type	Type of death causer. Can be set to Player, NPC, Unknown or None.
2 	Causer name	Name of death causer. For types Player and NPC it's character name. For Unknown type it's class name. For None it's empty.
3 	Location 	Location of character in X,Y,Z format
Causer type Unknown usually used for actors which are not players or NPCs. Type None used when causer not defined.
Category:API