Scripting/Squirrel/Functions/Sphere.Owner: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "allows you to check Sphere's Owner. where Owner stands for "creater of Sphere" == Syntax == <pre>Sphere.Color</pre> == Example == <source lang=D> function onSphereEntered...")
 
No edit summary
Line 3: Line 3:
== Syntax ==
== Syntax ==


<pre>Sphere.Color</pre>
<pre>Sphere.Owner</pre>





Revision as of 19:58, 13 March 2016

allows you to check Sphere's Owner. where Owner stands for "creater of Sphere"

Syntax

Sphere.Owner


Example

function onSphereEntered( player, Sphere )
{
  MessagePlayer( "Sphere's Owner: "+ Sphere.Owner, player );
}

Notes

[onSphereEntered] was used in this example..