Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: LordHorusNL on July 09, 2018, 12:56:36 PM

Title: Get Fsm Bool Action missing code for looping
Post by: LordHorusNL on July 09, 2018, 12:56:36 PM
I've found that the "Get Fsm Bool" and most of the other "Get Fsm Actions" are missing a small section of code that allows the user to loop through Fsm components on the same object.

This is fix is already implemented in most of the "Set Fsm Actions" it would seem.

At present it's set up so that only the value of the first Fsm found on the gameobject is retrieved.

I've fixed it on my end by changing the following.

if (go != goLastFrame)
{
   goLastFrame = go;
   fsm = ActionHelpers.GetGameObjectFsm(go, fsmName.Value);
}

To

if (go != goLastFrame || fsmName.Value != fsmNameLastFrame)
{
   goLastFrame = go;
   fsm = ActionHelpers.GetGameObjectFsm(go, fsmName.Value);
}

I thought i'd just post this in case any other people run into this problem.
Title: Re: Get Fsm Bool Action missing code for looping
Post by: jeanfabre on July 30, 2018, 08:07:41 AM
Hi,

 ok, thanks, I have raised a ticket internally for this to be addressed for the next release.

 Bye,

 Jean