playMaker

Author Topic: How to deal with scripts from states?  (Read 408 times)

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
How to deal with scripts from states?
« 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to deal with scripts from states?
« Reply #1 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 :