playMaker

Author Topic: No way to check if a variable exists on another FSM?  (Read 1604 times)

Abelius

  • Junior Playmaker
  • **
  • Posts: 68
No way to check if a variable exists on another FSM?
« on: September 09, 2020, 11:39:42 AM »
Hi there,

I'm in need of checking for the existence of a variable on another FSM, and it turns out I can't figure a way to do that because I can't find any action that does that, or another action that returns a failure event when the variable doesn't exist.

I also can't find any custom action on the Ecosystem. I know I'm weird, but surely this shouldn't be such an exotic thing...?  ???

My problem is that I can't just "get+check if null", because I'm looking for a boolean and they come as false by default. And what I need is to know if the variable exists at all.

Somebody has a suggestion to achieve this?

Thanks.
« Last Edit: September 09, 2020, 11:41:18 AM by Anaxtasia »
Unity 2019.4.9f1
Playmaker 1.9.7f1

Abelius

  • Junior Playmaker
  • **
  • Posts: 68
Re: No way to check if a variable exists on another FSM?
« Reply #1 on: September 13, 2020, 11:45:39 AM »
Bump
Unity 2019.4.9f1
Playmaker 1.9.7f1

ch1ky3n

  • Full Member
  • ***
  • Posts: 208
Re: No way to check if a variable exists on another FSM?
« Reply #2 on: September 13, 2020, 11:53:16 PM »
Can you explain the exact scenario of what you're trying to achieve?
I feel it got something to do with how you architect the system.

Maybe you have an enemy with a skill called "Can't be Killed" as a boolean and you want to check it during the Hit Sequence?

or maybe it is a crafting process that you want to check whether your items has Iron Ore or something?