Jump to content

How to get character quote about item?


Recommended Posts

Basically I need to get following upon inspecting my custom machine:

Character quote + current fuel level

My approach:

inst.components.inspectable.getspecialdescription=GetDescription


local function GetDescription(inst)

    local character_quote = ????
    return character_quote .. "Fuel "..math.ceil(inst.components.fueled:GetPercent()*100).."%."


end
 

Thanks in advance.

Edited by Desblat
Link to comment
Share on other sites

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
 Share

×
  • Create New...