playMaker

Author Topic: Compare two Game Objects by Tag  (Read 799 times)

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Compare two Game Objects by Tag
« on: September 28, 2020, 10:34:07 AM »
Hi,

is it possible to compare two game objects by its tag?

Selecting game object 1 and 2 and then if the tag is the same do something, if not the same, do something else.

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Compare two Game Objects by Tag
« Reply #1 on: September 28, 2020, 12:31:50 PM »
Ok, I think I resolved this myself by converting the tag to a string (get tag action) and comparing the strings instead (string compare action).

Let me know if there's a better way, but working great otherwise.

Cheers!