View Single Post
  #9  
Old 02-17-2009, 12:00 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Quote:
Originally Posted by Tyhm View Post
if you put a timeout in if(created):
Serverside: it's a lot like playerenters, because created's called once Ever for the Entire Server - which is often also when a player enters - but it could hypothetically start a script for an empty room. I guess it's useful if that's what you're going for - this event's going to happen whether anyone's here to see it or not - but generally it's good practice to, if a timeout happens when playerscount<1, do nothing until playerenters.
Clientside: dangerous, as it starts the loop only once per session; if you leave the room, the timeout stalls, and when you return it doesn't re-start.
Thanks for the clarification. So if I made the script serverside I could achieve my goal in initializing the loop, but since it would put pointless strain on the NPC Server, it would make more sense making it clientside and with playerenters?

I'm going back to my older levels and converting to GS2, and I'm wondering if I change certain tiles and use updateboard to make the changes visible, would the changes be made locally or for everyone in the level, or does it depend on the context I use those commands?
__________________
Save Classic!
Reply With Quote