Scripting/Squirrel/Functions/Vector: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
ProsuWANTED (talk | contribs) m (Uppercase fix.) |
No edit summary |
||
Line 1: | Line 1: | ||
This function | This function defines a Vector3 variable thant works as a dot in 3D space. | ||
== Syntax == | == Syntax == | ||
Revision as of 13:28, 7 November 2016
This function defines a Vector3 variable thant works as a dot in 3D space.
Syntax
Vector( x, y, z )
Arguments
- float x - X coordinate
- float x - Y coordinate
- float y - Z coordinate
Functions
Length()
Distance( vector )
Dot( vector )
Example
In the following example the player will teleport to the coordinates represented in X, Y, Z.
player.Pos = Vector( 190.12, -122.45, 455.32 );
Notes
Player.Pos were used in this example. More info about them in the corresponding pages.