Author Topic: Examine an object  (Read 1402 times)


  • Playmaker Newbie
  • *
  • Posts: 38
    • View Profile
Examine an object
« on: June 05, 2013, 02:15:07 AM »
Hello. I have a trigger that stores the gameobject it is colliding with, in this case, the player is touching an item. How can I examine the gameobject I am colliding with so that I can see what components it has?(what scripts, etc). And also, how would I access certain components on that game object, such as a script on it, etc. Thank you.


  • Administrator
  • Hero Member
  • *****
  • Posts: 15495
  • Official Playmaker Support
    • View Profile
Re: Examine an object
« Reply #1 on: June 05, 2013, 08:46:40 AM »

 You can't really "examine" a gameObject a runtime like this unfortunatly, not with playmaker as it is.

 You will have to maintain tags or some naming conventions to check out what it has to offer.

 you will certainly design several gameobjects, so they will have fsms, you could use "Get Fsm Bool" for example, and manually set the fsm name, if the fsm exists and the bool is set to true by default ( just a flag to let other check that it exists) then it means that this fsm exists, and you can then deduce things from it. You could also check for a string and them run some comparision to know exactly what this gameObject is.

does that make sense?