Jump to content

Recommended Posts

I keep getting 'Error', but I know my code worked before.  I'm trying to get the name of an entity, and I can tell via the logs that they DO have names.

inst.components.inspectable.description = ("This hound's name is " .. inst.components.named.name .. ".")

 

image.thumb.png.682eb2cf567dfab66e8bff3aea5056de.png

Just cus of the little comment up there I recommend maybe trying to use a specialdescription or descriptionfn

inst.components.inspectable.getspecialdescription = function(inst)
  return ("This hound's name is " .. inst.components.named.name .. ".")
end

-- this is used for things like funny recipes and skelingtonsssss

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...