View Single Post
  #8  
Old 08-26-2009, 03:15 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cyan3 View Post
I know it was used in GS1 but somebody told me a while back that it works in GS2 if it's called under a function.
Well I believe that would be useless to put in there, because I assume you want to be called when you do both onCreated and onPlayerEnters.

If you need it to update/do script every time you enter a level you can get away with only using onPlayerEnters(), if it's only a one time thing use onCreated().

Anyway the whole reason onPlayerEnters() exists is so you don't have to use "if (playerenters)" ever again.
__________________
Quote:
Reply With Quote