Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: damdai on September 12, 2013, 10:30:48 AM
-
Would it be possible to create an action to enable or disable other actions?
-
The Enable FSM Action is what you are looking for, it's under StateMachine.
-
Doesn't exist. There's "Enable FSM", but not "Enable FSM Action." I'm updated to latest version. Perhaps that's a custom action?
-
There's no Enable Action action... I'm worried that it would make it very hard to follow execution flow. If you need to turn off individual actions, they should probably be their own states, or even FSMs. Trying to do too much in one FSM can make it hard to follow and maintain.
Do you have an example showing how you would use it?
-
Essentially, it is a walk state with a "Controller Move" action. I wanted to add a Raycast action within the state that would check if the player was about to walk off an edge, and if so, disable/enable the "Controller Move" action accordingly. The concept is working through scripting, but it would be nice to remain within PlayMaker.
-
Hi,
To achieve this, simply have two fsm, one with the controller and one checking for enabling/disabling the fsm responsible for the controller.
Does that make sense?
bye,
Jean