AiGameEventRelay¶
With this AiGameEventRelay community component (Component), you can receive trigger events specifically related to chats with AI NPCs and subsequently send triggered events. Attach this Component to an AI NPC for event relay. This Component includes:
Property | Description |
---|---|
Trigger event | Determines an action or condition that initiates a specific event. For example, OnEmotion1 means when Emotion 1 is triggered. |
Event recipient | Determines the intended target of the trigger event:Specific allows an object in the scene to receive the trigger event. Public allows any objects attached with an AiGameEventRelay component and listening to public events in the scene to receive the trigger event. Self makes the AI NPC that this AiGameEventRelay component is attached to receive the trigger event. |
Select a recipient | Specifies an object in the scene as the trigger's recipient. This option is only visible when the Event recipient is set to Specific. By default, the AI NPC in the scene is selected. |
Triggered event | Determines the specific event to be initiated when a certain condition is met. For example, whenever Emotion 1 happens, the corresponding event named Laugh is fired. |
Event recipient | Determines the intended target of the triggered event: Specific Target allows an object in the scene to receive the triggered event. Public allows any objects attached with the AiGameEventRelay component and listening to public events to receive the triggered event. |
Select a recipient | Specifies an object in the scene to receive the triggered event. This option is only visible when the Event recipient is set to Specific. By default, the AI NPC in the scene is selected. |
Payload | Determines the data or information that is transmitted:Last triggered emitter: The emitter of the last triggered event. Last triggered recipient: The intended target of the latest triggered event. Scene object: An object from the scene. Source trigger: The original trigger event. Original recipient: The intended target of the original trigger event. |
Related components¶
This Component is usually used with the AICharacterMain component and the NPC feature (available via + Feature>Gameplay>NPC),