Solved Rename scenetree object in game engine lua

Discussion in 'Mod Support' started by chris_lucas, Jun 19, 2017.

  1. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,444
    Hi, I was wondering if it is possible to rename a scenetree object in game engine lua?
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    if you got an object from findClassObjects, findObject, findObjectById
    you can use the .name property
     
    #2 thomatoes50, Jun 20, 2017
    Last edited: Jun 20, 2017
    • Like Like x 2
  3. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,444
    Thanks a lot. :)
     
    • Like Like x 1
  4. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,444
    Is it possible to spawn a vehicle with a custom scenetree name instead of 'clone'?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice