Hi,
Script -> Playmaker:
var fsm = GetComponent<PlayMakerFSM>();
if (fsm != null) {
FsmBool mybool = fsm.FsmVariables.FindFsmBool("MyBool");
if (mybool != null) {
bool myBoolValue = mybool.Value;
}
}
Be aware of the difference between "FindFsmXY" and "GetFsmXY", the first returns null if not found and the later returns a new default variable with the given name, means it cant fail.
Playmaker -> Script:
Use the "GetProperty" Action for easy access, this should work on any public fields or properties.
bye Andy