Skip to main content

WaitForEventBehavior

WaitForEventBehavior

Wait for a given entity event via EntityComponentDataset#addEntityEventListener No failure condition, will wait forever until the event is detected.

Kind: global class
See: SendEventBehavior
Author: Alex Goldring
Copyright: Company Named Limited (c) 2025

waitForEventBehavior.event : string

Event name

Kind: instance property of WaitForEventBehavior

waitForEventBehavior.detected : boolean

Has the even occurred already?

Kind: instance property of WaitForEventBehavior

waitForEventBehavior.target : number

Entity to listen event on If value is negative - will assume value of the entity to which the behavior is bound

Kind: instance property of WaitForEventBehavior

WaitForEventBehavior.typeName : string

Kind: static property of WaitForEventBehavior
Read only: true

WaitForEventBehavior.fromJSON(json) ⇒ WaitForEventBehavior

Kind: static method of WaitForEventBehavior

Param
json