Hello! I’m trying to modify the hud_message_device by using the .SetText() function after certain intervals. I’m doing this using the Sleep() function, which calls the SetText method after, say, Sleep(5.0)
The problem is, the actual message in game doesn’t change after the 5 seconds.
The way I have it setup is that the hud device shows to all players when a timer kicks in, so for example
ChangeHUDAfterTime()<suspends> : void =
Sleep(5.0)
HudDevice.SetText(Message)
HandleTimerSuccess ( Agent : ?agent ) : void =
HudDevice.SetText(Message) # This works
spawn:
ChangeHUDAfterTime() # This doesn't work ??????
HudDevice.SetText(Message) # This works