Linked Spawned Object To Object

Discussion in 'How Can I...?' started by onetap, Sep 23, 2020.

  1. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    Hey,

    Is there a way I can link a spawned object to the object it has spawned from?
     
  2. Hue Buildbox

    Hue Buildbox Administrator Staff Member

    Joined:
    May 11, 2017
    Messages:
    385
    Likes Received:
    169
    Hi, I'm not sure if this can be done. If it were possible, it would need to be done with custom JavaScript code.
     
  3. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    539
    Likes Received:
    337
    What do you mean by this? What are you trying to achieve?
     
    onetap likes this.
  4. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    If for example I have an object that is a random spawner that object spawns a cube randomly. How would I attach an object to that cube that has been spawned randomly. So I spawn a cube from a spawner, how do I attach another object to that spawned cube.
     
  5. Josh (Nology Games)

    Josh (Nology Games) Community Manager

    Joined:
    Nov 27, 2017
    Messages:
    869
    Likes Received:
    268
    This is confusing to understand. Do you have an example?
     
  6. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    Apologies, I have a cube that spawns a character, I want to be able to spawn a random name label above the characters head each time the character is spawned. But I can't work out how to attach a spawner to an object that is also being spawned.
     
  7. Josh (Nology Games)

    Josh (Nology Games) Community Manager

    Joined:
    Nov 27, 2017
    Messages:
    869
    Likes Received:
    268
    Oh I see, you want to spawn a random Character with a random name.
     
    onetap likes this.
  8. onetap

    onetap Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    122
    Likes Received:
    34
    Correct yeah, and I need the name to stay above the characters head when it moves
     
  9. Josh (Nology Games)

    Josh (Nology Games) Community Manager

    Joined:
    Nov 27, 2017
    Messages:
    869
    Likes Received:
    268
    It’s definitely possible, and a pretty cool idea in general. The first step is spawning the character. Inside the character, would need the name template setup with that, you could just use a set of rules to have the name as an object. I am sure there’s an easier way, but I am not on the Laptop at the moment so I’m not sure off the top of my head.
     
  10. Josh (Nology Games)

    Josh (Nology Games) Community Manager

    Joined:
    Nov 27, 2017
    Messages:
    869
    Likes Received:
    268
    But the basic idea is to have an object (Name) above the character. The rules of the object (Name) could be don’t randomly
     
    onetap likes this.

Share This Page