Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Alroc on April 16, 2017, 06:42:59 AM

Title: How to access FSM variable from a "Create Object" Action
Post by: Alroc on April 16, 2017, 06:42:59 AM
Hello everyone.

I have a problem.

In my "GameMaster" Object i get all the connected pad and assign a value to a variable 'CurrentPadNumber".

In the GameMaster i Create the players and store it a variable "currentPlayer".
I'd like todynamically pass the stored object the value of that "CurrentPadNumber" but when i use the "Set FSM Variable" action it seems that i can't access the FSM names and variable of the "currentPlayer".

(http://i.imgur.com/aWfHv2J.png)


Simply put i want to pass values to a created object instance.

Thank you
Title: Re: How to access FSM variable from a "Create Object" Action
Post by: Ofonna on April 17, 2017, 12:57:09 AM
simply set fsm gameobject and manually type the fsm name and variable, it would work