Sphere.Owner

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sets the sphere owner.

Syntax

  1. Sphere.Owner = string

Example

When the script is loaded, set the sphere owner with ID 0 to 'Nobody' if is found.

  1.  
  2. function onScriptLoad ( ) {
  3.  
  4. local Sphere = FindSphere ( 0 );
  5. if ( Sphere ) Sphere.Owner = "Nobody";
  6. }
  7.  

Notes

The function Sphere.Owner and call onScriptLoad were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox