Skip to main content

Class: ScriptEventEmitted

Defined in: livelink.js/sources/scene/ScriptEvents.ts:48

The event that is fired when an entity emits a script event.

Extends

  • Event

Properties

PropertyModifierTypeDescription
emitter_entityreadonlyEntityThe entity that emitted the script event.
data_objectreadonlyScriptDataObjectThe data object associated with the script event.

Accessors

target_entities

Get Signature

get target_entities(): Promise<(null | Entity)[]>

Defined in: livelink.js/sources/scene/ScriptEvents.ts:78

The entities that are targeted by the script event.

Returns

Promise<(null | Entity)[]>

A promise that resolves to an array of entities or null if the entity could not be found.