View Single Post
  #1  
Old 10-17-2005, 07:20 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Variable Scopes?

Okay, I am a little bit confused about variable scopes, especially in gs2.

I know:
this
player
npcs[]
players[]
client/r
server/r
var = getPlayer or findPlayer or something and then that makes a new prefix.
etc.

are there other variable prefixes? I mean, I just don't know.
and also, what about non-prefixed vars? Are they clientside global temp? Confirm this or correct me.

Okay, the other thing that is much confusing me. How in the world does passing variables within an NPC to another function work? I mean, do param named variables stay local to their function...? It's just so confusing.
Reply With Quote