Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...