Thread: GMAP Variables
View Single Post
  #6  
Old 03-30-2006, 02:15 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
So setting a level.variable serverside will set a variable LOCAL to the gmap?

Can this variable be read clientside is all I really need.

ie: a npc anywhere on a gmap that does:
NPC Code:

function onCreated(){
level.areaname="Towny Town";
}



And then can I access it in a CLIENTSIDE script (like a weapon) using:
NPC Code:

function onCreated(){
showtext(200,screenwidth/2,screenheight/2,"System","c",level.areaname);
changeimgvis(200,4);
}



Because this is the most important thing about it.. that it can be read clientside. If level variables work like I imagine they do, I'm sure they can.. because its just like reading a server.variable clientside.. (which I didn't think you could, but I am told you can) only its for the level only.

If not, you will have to explain to me how I can do this.