Scripting/Squirrel/Functions/Vector: 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 "{{Scripting/Needs_Text}} == Syntax == <pre>Vector( X, Y, Z )</pre> == Arguments == * ''float'' '''X''' - X coordinate * ''float'' '''Y''' - Y coordinate * ''float'' '''Z''...")
 
No edit summary
Line 1: Line 1:
{{Scripting/Needs_Text}}
This function will teleport to the player to any location.


== Syntax ==
== Syntax ==
Line 10: Line 10:
* ''float'' '''Y''' - Y coordinate
* ''float'' '''Y''' - Y coordinate
* ''float'' '''Z''' - Z coordinate
* ''float'' '''Z''' - Z coordinate


== Example ==
== Example ==


{{Scripting/Needs_Example}}
In the following example the player will teleport to the coordinates represented in '''X''', '''Y''', '''Z'''.
<source lang=squirrel>
player.Pos = Vector( 190.12, -122.45, 455.32 );
</source>


=== Notes ===
=== Notes ===


[[Scripting/Squirrel/Functions/Player.Pos|Player.Pos]] were used in this example. More info about them in the corresponding pages.


== Related Functions ==
== Related Functions ==


{{Scripting/Squirrel/Functions/Data Structures}}
{{Scripting/Squirrel/Functions/Data Structures}}

Revision as of 14:52, 25 July 2014

This function will teleport to the player to any location.

Syntax

Vector( X, Y, Z )

Arguments

  • float X - X coordinate
  • float Y - Y coordinate
  • float Z - Z coordinate


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.

Related Functions