Object syntax: server.varname


The server prefix is used to set variables that are accessible by serverside scripts on the serverside only. server-prefixed variables are never sent to the clientside, and as such, clientside scripts are unable to access them.

These days, server variables are not used often, since Database NPCs often provide a more logical method of saving multiple flags. However, they are especially useful when storing only very small amounts of information that the clients do not need to know.

For server variables that can be read by the client, see serverr.


function onCreated()
  server.variable = "value";



There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki