EventSystem

Manages the broadcasting of events.

Summary
EventSystemManages the broadcasting of events.
Functions
NKBroadcastEventBroadcasts an event to all game objects in the world.
NKBroadcastEventInRadiusBroadcasts an event to all objects within a radius of a location.
NKBroadcastEventToClassBroadcasts an event to all objects of a specific class.
NKBroadcastEventToClassInRadiusBroadcasts an event to all objects of a specific class within a radius of a location.
NKBroadcastEventToNameBroadcasts an event to all objects of a specific name.
NKBroadcastEventToNameInRadiusBroadcasts an event to all objects of a specific name within a radius of a location.

Functions

NKBroadcastEvent

Broadcasts an event to all game objects in the world.  This can be very expensive.

Parameters

stringThe name of the event.
argsAny arguments to pass with the event.

NKBroadcastEventInRadius

Broadcasts an event to all objects within a radius of a location.

Parameters

stringThe name of the event.
vec3The center of the broadcast range.
floatThe radius of the broadcast.
argsAny arguments to pass with the event.

NKBroadcastEventToClass

Broadcasts an event to all objects of a specific class.

Parameters

stringThe name of the event.
stringThe name of the class to broadcast to.
argsAny arguments to pass with the event.

NKBroadcastEventToClassInRadius

Broadcasts an event to all objects of a specific class within a radius of a location.

Parameters

stringThe name of the event.
stringThe name of the class to broadcast to.
vec3The center of the broadcast range.
floatThe radius of the broadcast.
argsAny arguments to pass with the event.

NKBroadcastEventToName

Broadcasts an event to all objects of a specific name.

Parameters

stringThe name of the event.
stringThe name of the object to broadcast to.
argsAny arguments to pass with the event.

NKBroadcastEventToNameInRadius

Broadcasts an event to all objects of a specific name within a radius of a location.

Parameters

stringThe name of the event.
stringThe name of the object to broadcast to.
vec3The center of the broadcast range.
floatThe radius of the broadcast.
argsAny arguments to pass with the event.
Close