TK_PromptComponent - golden-coconut-studio/TikiAdventuresWiki GitHub Wiki
TK_Prompt is a class for blueprint that carries a prompt that can be activated and deactivated easily through the classes functions. prompt components have 3 functions:
Activate Prompt
activates the prompt by setting its visibility to true.
Deactivate Prompt
deactivates the prompt by setting its visibility to false.
DisablePromptCompletely
deactivates the prompt and also makes it so it cannot be activated again
add prompt components to any object that you want. Note that prompt component starts with the prompt set invisible. so if you want it to be visible by default, make sure to call the ActivatePrompt function.
Here's an example of using the prompt functions inside the lever. when you get inside one of the lever's collider, you activate the prompt. When you leave this collision, the prompt is deactivated again: