Scripting/Squirrel/Functions/Sphere.Pos: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
Decent 946 (talk | contribs) (Created page with "allows you to check Sphere's color in RGB == Syntax == <pre>Sphere.Pos</pre> == Example == <source lang=D> function onSphereEntered( player, Sphere ) { MessagePlayer(...") |
Decent 946 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
allows you to check Sphere's | allows you to check Sphere's Position. | ||
== Syntax == | == Syntax == |
Revision as of 20:02, 13 March 2016
allows you to check Sphere's Position.
Syntax
Sphere.Pos
Example
function onSphereEntered( player, Sphere )
{
MessagePlayer( "Sphere Pos X: "+ Sphere.Pos.x +", Y: "+ Sphere.Pos.y +", Z: "+ Sphere.Pos.z , player );
}
Notes
[onSphereEntered] was used in this example..