Summary
Currently, we cannot set InteractMessage dynamically during runtime. The code below is a sample code for changing the InteractMessage of interactable_component during runtime.
basic_interactable_override_component<public>:=class<final_super>(basic_interactable_component):
var OptionalInteractMessage<private>:?message=false
OnSimulate<override>()<suspends>:void=
(super:)OnSimulate()
loop:
Agent := SucceededEvent.Await()
Message := StringToMessage("Line 12")
set OptionalInteractMessage = option{Message}
InteractMessage<override>(Agent:agent)<reads><decides>:message=return OptionalInteractMessage?
StringToMessage<public><localizes>(value:string) : message = "{value}"
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Other
Steps to Reproduce
- Create a class that will override interactable_component
- Change InteractMessage to desired message in runtime
Expected Result
Interact message should change to desired message.
Observed Result
It shows {Value} when the interact message is changed.
Platform(s)
Windows