playMaker

Author Topic: Get Event Info being weird  (Read 634 times)

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Get Event Info being weird
« on: September 22, 2020, 07:34:06 AM »
This was all working before then it just stopped.
I created a small test with blank objects and I'm still having the issue.
Cube1: spawns Cube2
Cube2: Get Event info>Sent by game object and store as X.
X is coming up as blank.
This didn't happen before and my turret is broken because of it because it won't pass along a float I'm using to determine turret damage.
Help please?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Get Event Info being weird
« Reply #1 on: September 22, 2020, 03:45:41 PM »
Hi.
It seems the logic is wrong, as.
if you spawned the object and did not send an event to it, that might be the issue.

But if i understand correct you want to store cube 1 in a variable on the spawned cube 2.

If so :
On cube 2, best is to name your fsm (for example 'Data')

Spawn the object and store it in a variable (cube 2).
Then use 'Set Fsm Game Object' and use the stored variable (cube 2)
and fsm 'Data' (for example)
and variable 'X'

There are "Set Fsm" actions for int/float/etc.
you can find even more on the Ecosystem (for example Fsm Bool Test).