Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: thunder on August 08, 2022, 09:02:42 PM

Title: How to deal with scripts from states?
Post by: thunder on August 08, 2022, 09:02:42 PM
I want to try to build a normal flowchart in playmaker but not using any usual actions at all, instead I want to just call scripts from inside of each state, where each  script represents the behavior for that state(like scr_moving for the moving state). What action can I use to achieve that? I tried using the "add script" action but it is a bit hard.
Title: Re: How to deal with scripts from states?
Post by: djaydino on August 09, 2022, 04:56:19 AM
Hi.
If you have multiple scripts you could use enable component for example to enable/disable the script.

But probably you want to make some custom actions to call some methods on a script.

this video explains how you can make custom actions :