playMaker

Author Topic: Mouse picking from multiple objects [SOLVED]  (Read 3285 times)

MediaGiant

  • Playmaker Newbie
  • *
  • Posts: 5
Mouse picking from multiple objects [SOLVED]
« on: March 17, 2013, 12:32:12 PM »
I'm using the Mouse Pick action to select between objects (dynamically created) in the world. Mouse Pick stores the game object selected in a global variable called currentObject. I then added a Bool Test to jump to a new state where I would like to perform a Set Material action on the selected object. The problem is when I click on Specify Game Object the global variable is not available. Perhaps this is the wrong approach so I'd welcome any ideas. 
« Last Edit: March 18, 2013, 10:08:46 AM by MediaGiant »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Mouse picking from multiple objects
« Reply #1 on: March 18, 2013, 08:08:02 AM »
Try this (attached scene) Import into existing project with PlayMaker and open the scene.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

MediaGiant

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Mouse picking from multiple objects
« Reply #2 on: March 18, 2013, 10:07:42 AM »
Hi Lane, from looking at your example I noticed that you had selected that odd little button just under Specify Game Object that says Use Variable, DOH! I was expecting it to be in the drop down list automatically, but I'm glad that is solved. You're a champ. Thanks.