playMaker

Author Topic: Get FSM Variable bug  (Read 1799 times)

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Get FSM Variable bug
« on: February 22, 2015, 06:57:08 AM »
Well, I use this action but where I should select the variable, it only gives me None and the Globals. What can be the problem ?

invayne

  • Full Member
  • ***
  • Posts: 105
Re: Get FSM Variable bug
« Reply #1 on: February 22, 2015, 09:51:36 AM »
you have to chose which fsm to pull from first then get the var and then to set it to a var you make with in the fsm your working in

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Get FSM Variable bug
« Reply #2 on: February 22, 2015, 01:39:19 PM »
I created a variable and named it exactly as the variable I want to get from another FSM. I selected it but it doesn't give me any value. I attached a screenshot.


invayne

  • Full Member
  • ***
  • Posts: 105
Re: Get FSM Variable bug
« Reply #3 on: February 22, 2015, 01:48:52 PM »
you have an error at the bottom there did you see if that was the cause of it?
other than that it should work like it should  just a word of thought but when dealing with damage you should check  it every frame and then loop it back to the start state so it does a continues cycle other wise it will just go to the 2nd state once and never go back so under get fsm do a next frame event and loop it back to your start state

edit:  just to check is  that suppose to be a one hit attack?
« Last Edit: February 22, 2015, 01:50:24 PM by invayne »