playMaker

Author Topic: i want to make "die" action  (Read 1256 times)

puren37

  • Playmaker Newbie
  • *
  • Posts: 3
i want to make "die" action
« on: September 16, 2020, 07:22:39 AM »
hi all

i have the object which has child gameobj. and the child object check the getTriggeredStay.
but although i finished this parent object's action, still updating in child object makes system overloading. so i want to stop this child's "updating state" from any state to kill this action.

i know there is global transition, but i'm not sure this makes kill all the same prefabs. (because this is "global" transition)

how can i solve this?

thank you

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: i want to make "die" action
« Reply #1 on: September 16, 2020, 03:57:31 PM »
Hi.
There are several solutions.

You could use a Set Fsm Bool to check 'isDead' for example or sent a global event.

Here is a video about local and global transitions which might help :