G.OrderVectors

From GMod Wiki

Revision as of 21:45, 2 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax OrderVectors( Vector vec1, Vector vec2 )
Where is this used?
Description:
This function will make all of vec1's axis smaller than vec2. It will edit the vectors instead of returning new ones.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.OrderVectors]G.OrderVectors [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes two vectors compatible with ents.FindInBox(vecmin, vecmax)
Used onNewerShared.png
Code
local vec1, vec2 = Vector(-2, 2, 2), Vector(2, -2, -2)
OrderVectors(vec1, vec2)
print(vec1)
print(vec2)
Output-2.0000 -2.0000 -2.0000
2.0000 2.0000 2.0000


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox