Jump to content

Recommended Posts

How does one exactly use this? I know it must return a string, but I really want to add my own and so far it doesnt really work...
 

Quote

Somewhere in the prefab

local function GetVerb()
    return STRINGS.ACTIONS_SOTA.CLEAN_UP
end

local function fn()
       [...other code...]
       inst.GetActivateVerb = GetVerb
       [...other code...]
end

Somewhere in modmain

GLOBAL.STRINGS.ACTIONS_SOTA = 
{
    CLEAN_UP = "Clean up"
}

And it still just shows "Activate" instead of "Clean up"

Edited by FuffledBeeQueen
Link to comment
https://forums.kleientertainment.com/forums/topic/86722-instgetactivateverb/
Share on other sites

22 hours ago, CarlZalph said:

@FuffledBeeQueen

GetActivateVerb returns an all-caps string to be used in GetActionString.

You'll want to use:

GLOBAL.STRINGS.ACTIONS.ACTIVATE.CLEANUP = "Clean up"

And GetActivateVerb would be a function that returns the string "CLEANUP".

 

Thank you for the desc.

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...