NPC Wait
This component belongs to the following package:
- com.yahaha.sdk.npc
This NPC Wait Component allows you to add waiting behavior to a non-player character (NPC).
Property | Description |
---|---|
Is Debug | If enabled, the Component runs in debug mode, providing additional information for testing and troubleshooting purposes in the console. |
Events and Actions
Events
- AlertFromNPCWait: Triggered when an anomaly is detected during the waiting behavior.
- AllClearFromNPCWait: Triggered when everything is normal during the waiting behavior.
- WaitStart: Triggered when the waiting behavior starts.
- WaitEnd: Triggered when the waiting behavior ends.
Actions
-
ChangeBehaviour: Switches to the waiting behavior.
- Arguments
- NPCGameObject: The NPC's GameObject.
- waitDuration: The duration of the waiting time.
- Arguments
-
SetEnable: Sets whether the waiting behavior is enabled or not.
- Arguments
- enable: Indicates whether to enable the waiting behavior.
- Arguments