G.Vector

From GMod Wiki

Jump to: navigation, search
Function
Syntax G.Vector( Float x, Float y, Float z )
Where is this used?
Description:
Create a vector
Returns: Vector
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Vector]G.Vector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAdd a vector to the player's position.
Used onNewerServer.png
Code
ply:SetPos( ply:GetPos() + Vector(0,0,100) )
OutputThe player is teleported 100 units upwards.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox