Page MenuHomeFeedback Tracker

A "terminate" command for FSM's
Closed, ResolvedPublic

Description

It would be nice, if there was a command to terminate an active FSM handle.

Details

Severity
Feature
Resolution
Fixed
Reproducibility
N/A
Operating System
Windows 11 x64
Category
Feature Request

Event Timeline

You can always set an FSM variable that would direct your FSM to the exit state.

Hey there!

That's how we currently handle it but our framework is big and one can forget to set this variable into a new FSM.
It would be less annoying, if it could be handled automatically.

Greetings

Terminating FSM would mean removing it from scheduler on the next simulation so it would just stop running at unknown part of its execution. Is that what you are after? Isn't it better to have controlled FSM exit rather than "eject"?

Yes exactly.

It's a quest system thats possibly running a couple of FSM's in the background. If someone changes the faction, the system should terminate all running fsm's no matter which state.

BIS_fnc_KK set Ref Ticket to AIII-56239.EditedJan 30 2024, 11:44 PM

Revision: 151368

but you will have to execFSM with allowTerminate param

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jan 30 2024, 11:45 PM
BIS_fnc_KK changed the task status from New to Feedback.

Thank you, works like a charm!

BIS_fnc_KK closed this task as Resolved.Feb 9 2024, 8:55 PM
BIS_fnc_KK changed Resolution from Open to Fixed.