Jump to content
Sign in to follow this  
giovafr

how to get FSM current state?

Recommended Posts

i'm discovering FSMs,have read some articles regarding this, but i'm still missing of most important informations :

1) how to debug an fsm ?

and most important :

2) is it possible to get the current state of an FSM?

perhaps a special variable?

Any help will be very appreciated.

Share this post


Link to post
Share on other sites

Put lots of this in your FSM:

diag_log format ["%1", _variableYouNeedToCheck];

You can then see what's running and work out where it is at any point.

You could assign a variable to something (like to missionNameSpace or similar) when the FSM is in a certain state so you know where it is at any given time.

Share this post


Link to post
Share on other sites

yes i use a lot of "custom tracking variable" thx :)

But i also hope there is a magic variable as _foreachindex to get current FSM state :D

Share this post


Link to post
Share on other sites

i was so happy by reading your answer !

Unfortunatly diag_debugFSM doesn't exists for Arma 3, it seems available only for vbs2 :pet5:

Share this post


Link to post
Share on other sites
i was so happy by reading your answer !

Unfortunatly diag_debugFSM doesn't exists for Arma 3, it seems available only for vbs2 :pet5:

I was worried about that... sorry for getting your hopes up man...

[edit] maybe make a feedback tracker feature request for it or something similar?

Edited by k0rd

Share this post


Link to post
Share on other sites

yes, i'll do that and post link to the ticket here.

while this i set a _state variable everywhere, perhaps i'll do a tool for that ;)

Thanks for your help.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×