Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: damdai on September 12, 2013, 10:30:48 AM

Title: Enable/Disable other actions
Post by: damdai on September 12, 2013, 10:30:48 AM
Would it be possible to create an action to enable or disable other actions?
Title: Re: Enable/Disable other actions
Post by: Saputo on September 12, 2013, 08:22:46 PM
The Enable FSM Action is what you are looking for, it's under StateMachine.
Title: Re: Enable/Disable other actions
Post by: damdai on September 13, 2013, 10:41:20 AM
Doesn't exist. There's "Enable FSM", but not "Enable FSM Action." I'm updated to latest version. Perhaps that's a custom action?
Title: Re: Enable/Disable other actions
Post by: Alex Chouls on September 13, 2013, 11:07:07 AM
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?
Title: Re: Enable/Disable other actions
Post by: damdai on September 13, 2013, 02:19:54 PM
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.
Title: Re: Enable/Disable other actions
Post by: jeanfabre on September 16, 2013, 02:03:32 AM
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