Keywords: alert, sleep, spawn
(See the best response by NNAAAAHH.)

Problem description:
i use alert for interacting with NPCs and while they are interacting they are flagged as being busy so they cant do anything but stand there looking at the player waiting for him or her to select something from alert.

the problem is that my friends who are testing the game already think its funny to make important NPCs be busy by not selecting anything and leaving the alert box open.

all i need to do to fix this problem is to have the alert box close itself after 15 seconds using sleep or spawn but i have no idea how to do this. its not covered in the reference or any tutorial ive looked at.
Best response