Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: darkfo on September 04, 2017, 11:47:07 PM

Title: HOW to change FSM variables in own script?
Post by: darkfo on September 04, 2017, 11:47:07 PM
I want to write a script to control the variables in certain FSM.
I know it can be done in FSM actions but it's kind of free to control them in my own script.
I'v already know that I can get value of variables by using .FsmVariables.getxxx(),
but it can change the value of the variables.
So could anybody help me how to change value of the variables in FSM?
Thank you!
Title: Re: HOW to change FSM variables in own script?
Post by: jeanfabre on September 05, 2017, 02:57:29 AM
Hi,

 yes, you simply set the .Value of an fsm variable.

.FsmVariables.getxxx().Value = yyy;

Bye,

 Jean