i have made a trigger and attached a sript to it, it will open a message box on trigger enter.
in my message box i made 2 menu buttons
menu button 0 = option1
menu button 1 = option 2
after loading the game and test the trigger, i have to click twice on option 1 in order to close the message box, and click 3 times on option 2 to close the message box.
what do i need to add in my script in order to close the message box in one click into any option ?
here is my script below.
thx
Scriptname GP_TriggerText extends ObjectReference
Message Property showmessage Auto
EVENT onTriggerEnter(objectReference triggerRef)
if triggerRef == Game.getPlayer()
showmessage.show()
if (showmessage.show() == 0)
Debug.Notification("Option 1")
elseif (showmessage.show() == 1)
Debug.Notification("Option 2")
endif
endif
EndEVENT