Aller au contenu

Photo

Close an open store. or area transition from a store.


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Travis Ross

Travis Ross
  • Members
  • 3 messages
Hey all I am trying to teleport a player to another location after a fixed amount of time. The idea being that the player has 4 minutes MAX to select an item from a store. If after 4 minutes they have not selected they get a random item.

I can't get this to work because the shop freezes DelayEvent. And seems to lock out commands. In other words while the shop is open, I can't get the player to teleport. Is there a way to either force the shop to close enabling the teleport? or make an event that will trigger after 4 minutes even when the shop window is open?

Cheers.

Travis

#2
Travis Ross

Travis Ross
  • Members
  • 3 messages
Thanks to anyone who thought about this. I was able to get this working. Since the game is pause in the GUI it doesn't handle events however if you ToggleGamePause(FALSE) you can set the game to delay an event a given amount of time and it will handle it while in the GUI! W00t




#3
Proleric

Proleric
  • Members
  • 2 346 messages
That's very useful. Thanks for posting the solution.