Dynamic context usage examples
Blueprint recipes for health tracking, context events, zone transitions, state removal, and dynamic context resets in training simulations.
Seed context before the session connects
// Blueprint pseudocode — Event BeginPlay on the character Actor
→ Set Context State Name="Facility" Value="Offshore Platform Alpha" ShouldRespond=Never
→ Set Context State Name="Scenario" Value="Fire Drill" ShouldRespond=Never
→ Add Context Event Text="Trainee briefing complete" ShouldRespond=NeverTrack player health
// Blueprint pseudocode
Event HealthChanged (NewHealth: float)
→ ConvaiBotComponent → Set Context State
Name: "PlayerHealth"
Value: ToString(NewHealth)
ShouldRespond: NeverRead a state value before sending a redundant event
Announce a narrative event
Update multiple states after a scene transition
Remove a state when a condition ends
Combine state and event for a critical moment
Reset context on level restart
Next steps
Dynamic context Blueprint referenceTroubleshoot dynamic contextLast updated
Was this helpful?