playMaker

Author Topic: HOW to change FSM variables in own script?  (Read 1444 times)

darkfo

  • Playmaker Newbie
  • *
  • Posts: 1
HOW to change FSM variables in own script?
« 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: HOW to change FSM variables in own script?
« Reply #1 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