My goal is to teleport the player once the first button response is pressed. What verse code do I need to type with RespondingButtonEvent in order to do that? Thanks in advance.
I think you can do :
# Put that somewhere in your code (OnBegin for example)
PopupDialog.RespondingButtonEvent.Subscribe(OnPopupButtonClicked)
OnPopupButtonClicked(Agent: agent, Index: int):void =
if(Index = 0): # Try with 1 if it doesn't work
MyTeleporter.Teleport(Agent)
4 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.