Aller au contenu

Photo

DelayCommand & Player Logouts


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

#1
EzRemake

EzRemake
  • Members
  • 118 messages

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?



#2
Shadooow

Shadooow
  • Members
  • 4 470 messages

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)


  • WhiteTiger aime ceci

#3
EzRemake

EzRemake
  • Members
  • 118 messages

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