Jump to content

get the name of a thingoid


Rick
 Share

Recommended Posts

I thought I did this before, but I can seem to recall how to get the name of a thingoid. So if I was looking through the objecttable how could I get the name of each thingoid in it? I tried GetKey("name") or just the name property but that didn't seem to work.

Link to comment
Share on other sites

Why not just set the name key in the thingoid's script (or .ini file (have people forgotten about those?)? I made also the name key editable for my models, since I want to be able to have more meaningful names than light_point_1.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

I'm trying to get the name of other thingoids in a different thingoid. I want to allow to set the name of a thingoid in the settings of another thingoid instead of using a target.

 

Also, is it me or in the class.lua file does it look like there is a Name property but the get and set key methods aren't doing anything with it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...