Scripting/Squirrel/Functions/Pickup.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
Doom Killer (talk | contribs) (Created page with "== Syntax == <pre>vector Pickup.Pos = Vector( X, Y, Z )</pre> == Arguments == '''> Pickup''' - The pickup instance. '''> X''' - The X-axis float point. '''> Y''' - The Y-ax...") |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
'''> Pickup''' - The pickup instance. | '''> Pickup''' - The pickup instance. | ||
'''> X''' - The X-axis float point. | '''> X''' - The X-axis float point. | ||
'''> Y''' - The Y-axis float point. | '''> Y''' - The Y-axis float point. | ||
'''> Z''' - The Z-axis float point. | '''> Z''' - The Z-axis float point. | ||
Line 20: | Line 23: | ||
} | } | ||
</pre> | </pre> | ||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/Pickup_Functions}} | |||
[[Category:Scripting/Squirrel/Functions/Pickup_Functions]] |
Latest revision as of 18:37, 30 January 2017
Syntax
vector Pickup.Pos = Vector( X, Y, Z )
Arguments
> Pickup - The pickup instance.
> X - The X-axis float point.
> Y - The Y-axis float point.
> Z - The Z-axis float point.
Example
This example will create a pickup and set its position to the center of map.
function onScriptLoad() { myPickup <- CreatePickup( 284, 1, Vector( -2261.12, 753.12, 211.123 ) ); myPickup.Pos = Vector( 0, 0, 0 ); }