Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Krauser1129 on September 22, 2020, 07:34:06 AM

Title: Get Event Info being weird
Post by: Krauser1129 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?
Title: Re: Get Event Info being weird
Post by: djaydino 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 (https://hutonggames.fogbugz.com/default.asp?W1181) (for example Fsm Bool Test).