playMaker

Author Topic: [SOLVED] How to take one GameObject from a variable and place in another  (Read 1864 times)

AKindChap

  • Playmaker Newbie
  • *
  • Posts: 6
When I hover over a gameobject it gets stored in the HoverOver variable.
Then when I click that gameobject, I'd like for it to get put in the ChosenBox variable.

The only thing that came to mind was "Convert Gameobject to Gameobject", but that didn't exist?
« Last Edit: February 04, 2015, 05:58:35 PM by AKindChap »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
A GameObject is already a GameObject, so no conversion is possible.

You're probably thinking of Set Position or something, where the gameobject moves to a different position or a new gameobject is created at some specific position.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

AKindChap

  • Playmaker Newbie
  • *
  • Posts: 6
The problem I have is that - because it gets the object when I hover over the object - as soon as I move my mouse away, the variable changes.

I'd like it so that when I clicked, it saved what was inside the "hover" variable to a "clicked" variable.

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
use set gameobject in wich you'll set your new variable with grabbed object variable