Don't interact forever

This commit is contained in:
Joshua Barretto 2023-04-02 18:47:54 +01:00
parent 364255c7fe
commit dfb5e32803

View File

@ -490,11 +490,15 @@ fn handle_rtsim_actions(bdata: &mut BehaviorData) -> bool {
&bdata.read_data, &bdata.read_data,
target, target,
) { ) {
bdata.controller.push_utterance(UtteranceKind::Greeting);
bdata.controller.push_action(ControlAction::Talk); bdata.controller.push_action(ControlAction::Talk);
bdata.controller.push_utterance(UtteranceKind::Greeting);
bdata bdata
.agent_data .agent_data
.chat_npc("npc-speech-villager", &mut bdata.event_emitter); .chat_npc("npc-speech-villager", &mut bdata.event_emitter);
bdata
.agent
.timer
.start(bdata.read_data.time.0, TimerAction::Interact);
} }
} }
} }