Author Topic: DelayCommand & Player Logouts  (Read 307 times)

Legacy_EzRemake

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
DelayCommand & Player Logouts
« on: November 21, 2014, 06:40:32 pm »


               

I'm curious how the game treats DelayCommand if the object it's attached to logs out of a server (i.e item on a PC, or the PC itself).


 


Say for instance I put a variable on a PC item, and then delay command a few second to remove the variable, what will happen if that player logs out during the delay phase? What happens to these delayed commands during a restart?



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
DelayCommand & Player Logouts
« Reply #1 on: November 21, 2014, 07:56:06 pm »


               

delaycommands will cease to exist after player logs out


 


this is a common problem of many scripting solutions like for example a time lock for Greater Sanctuary a workaroud is to set the delay on Module/Area/another object with a "variablename_"+ObjecToString(oPC)



               
               

               
            

Legacy_EzRemake

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
DelayCommand & Player Logouts
« Reply #2 on: November 21, 2014, 08:46:43 pm »


               

Thank you very much, that workaround is going to help a ton for non-persistent variables!