playMaker

Author Topic: Call an action only once and disable it for the rest of the game.  (Read 1566 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Hi, I want to call an action and/or a state only once in the entire game, even after scene changes, restarts and etc, but without destroying after. How can I do that without destroying the actual object/action or state?

In other words, how in runtime to uncheck a specific action once it's executed?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Call an action only once and disable it for the rest of the game.
« Reply #1 on: March 14, 2014, 06:50:32 AM »
Hi,

 Not really possible. What is this action in question?

I would isolate that state and insert a bool check before and shunt that state if a boolean flag is true ( that flag being set to true in the state you run this action)

bye,

 Jean