Garry's Mod Wiki

constraint.CreateStaticAnchorPoint

  Entity, PhysObj, number, Vector constraint.CreateStaticAnchorPoint( Vector pos )

Description

Creates an invisible, non-moveable anchor point in the world to which things can be attached.

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 entity.

Arguments

1 Vector pos
The position to spawn the anchor at

Returns

1 Entity
The anchor entity. (gmod_anchor)
2 PhysObj
The achor entity's physics object. (Entity:GetPhysicsObject)
3 number
Always 0.
4 Vector
Always vector_zero.