Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wetcircuit on May 03, 2016, 02:53:49 PM

Title: newbie: edit an action to input FsmString instead of string
Post by: wetcircuit on May 03, 2016, 02:53:49 PM
Thanks to forums I have an idea how to ask the question, but I'm not able to answer on my own.

I have a PlayMaker action supporting a 3rd-party asset, but it does not accept Playmaker variables in the input fields. For instance, the input "Text" uses public string, not public FsmString, another input uses public int, not public FsmInt, etc.

I believe (?) that I need to input the playmaker variable and convert it to a regular variable…. Anyone know a newbie tutorial for non-coders along these lines?
Title: Re: newbie: edit an action to input FsmString instead of string
Post by: mdotstrange on May 03, 2016, 04:24:01 PM
If you go to the new actions section of these forums there are links to help with custom actions-

So when using FsmString in scripts- if the C# script used the string like

stringName = "hello"

For the FsmString you would write it with ".Value" after the Fsm var like this-

stringName.Value = "hello"