playMaker

Author Topic: Collide / Get Tag / Send Event on Tag [SOLVED]  (Read 832 times)

curb47

  • Sr. Member
  • ****
  • Posts: 256
Collide / Get Tag / Send Event on Tag [SOLVED]
« on: October 10, 2020, 07:24:57 AM »
Hello,

I've been reworking some old FSMs and stumbled into this mash up, where I've got a load of Collider Events on one object catering for different Tags, so depending on what the spaceship bumps into, it sends different events...


It works, and gets the job done but it's a bit over the top, right? I thought there must be a more elegant way of doing it so i came up with this:


I thought -'Yeah! that'll work!'

Here's the State opened up...


It looks like it should work, but alas, it's not. It kind of nearly works, but the Get Tag, isn't getting the tag...


Can somebody please explain what I'm doing wrong? The logic is sound, right?

Thanks in advance.

J.



« Last Edit: October 12, 2020, 01:01:32 AM by curb47 »

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Collide / Get Tag / Send Event on Tag
« Reply #1 on: October 10, 2020, 01:46:21 PM »
Did you try marked Every Frame ?

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Collide / Get Tag / Send Event on Tag
« Reply #2 on: October 11, 2020, 02:45:56 AM »
Ah! Good point, I'll try that.

Thanks!
J.

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Collide / Get Tag / Send Event on Tag
« Reply #3 on: October 12, 2020, 01:01:20 AM »
I tried Every Frame, and the logic resulted in the Exceeded Maximum Count (1000) error, so I ended up splitting the State into 2; 1 for the collider and one for the Get Tag and Tag Switch, set Action Sequence.

It might not be 'correct' but it now works.