Garry's Mod Wiki

Revision Difference

constraint.CreateStaticAnchorPoint#551801

<function name="CreateStaticAnchorPoint" parent="constraint" type="libraryfunc"> <description> Creates an invisible, non-moveable anchor point in the world to which things can be attached. <note>The entity used internally by this function (`gmod_anchor`) only exists in Sandbox derived gamemodes, meaning this function will only work in these gamemodes. To use this in other gamemodes, you may need to create your own [gmod_anchor](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/entities/gmod_anchor.lua) entity.</note> </description> <realm>Server</realm> <file line="661-L672">lua/includes/modules/constraint.lua</file> <file line="665-L677">lua/includes/modules/constraint.lua</file> <args> <arg name="pos" type="Vector">The position to spawn the anchor at</arg> </args> <rets> <ret name="" type="Entity">anchor</ret> <ret name="" type="PhysObj">physicsObject,</ret> <ret name="" type="number">bone</ret> <ret name="" type="Vector">LPos</ret> </rets> </function>