Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gamedivision on June 23, 2017, 07:58:31 AM

Title: Get Tag of collided gameObject
Post by: gamedivision on June 23, 2017, 07:58:31 AM
instead of creating a send event for every single tag if collide with this tag then do this, id rather the collider grabs the tag of the collided object and then does something that way id only need one send event
do we have anything like that i cant seem to find it


thank you
Title: Re: Get Tag of collided gameObject
Post by: Fat Pug Studio on June 23, 2017, 09:10:43 AM
Could you explain it a bit better or post an example? I mean i see what you're getting at, is Game Object Tag Switch not working out for you?
Title: Re: Get Tag of collided gameObject
Post by: gamedivision on June 23, 2017, 11:49:33 AM
i have 10 static gamObjects within a scene, as i drag an object with my mouse over those 10 objects i would like the object im dragging to detect the name of that gameObject using the collider attached, rather than 10 trigger events in the draggable object detecting each tag individually
so instead of 10 trigger statements, i only have one storing the name of the gameObject it has collided with
Title: Re: Get Tag of collided gameObject
Post by: Ofonna on June 23, 2017, 02:00:19 PM
hi, you could leave the tag and set the trigger to untagged, in the same action store the collider and then in another fsm get the tag of the stored object and perform the task you wish to perform
Title: Re: Get Tag of collided gameObject
Post by: gamedivision on June 26, 2017, 05:58:28 AM
it's funny that some of the most obvious things are staring right in your face and you don't see them thank you