Garry's Mod Wiki

Revision Difference

Tool:GetPos#517908

<function name="GetPos" parent="Tool" type="classfunc"> <description>Retrieves an vector previously stored using <page>Tool:SetObject</page>. See also <page>Tool:GetLocalPos</page>.</description> <realm>Shared</realm> <file line="61">gamemode/sandbox/entities/weapons/gmod_tool/object.lua</file> <args> <arg name="id" type="number">The id of the object which was set in &lt;page&gt;Tool:SetObject&lt;/page&gt;.</arg> <arg name="id" type="number">The id of the object which was set in <page>Tool:SetObject</page>.</arg> </args> <rets> <ret name="" type="Vector">Associated vector with given id. The vector is converted from <page>Tool:GetLocalPos</page>.</ret> </rets> </function>