constraint.CreateStaticAnchorPoint
From GMod Wiki
| Function | |
| Syntax |
constraint.CreateStaticAnchorPoint( Vector pos ) Where is this used? |
| Description: | |
| Creates an invisible, non-moveable anchor point in the world to which things can be attached. | |
| Returns: | Entity anchor, Physobj phys, Number bone, Vector local_pos |
| Part of Library: | constraint |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Constraint.CreateStaticAnchorPoint]Constraint.CreateStaticAnchorPoint [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | N/A | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | N/A |
Additional Notes
Return values
- anchor is the actual anchor entity that was created.
- phys is that anchor's physics object.
- bone will always be 0.
- local_pos will always be equal to Vector(0, 0, 0).
- Must be used in Sandbox or as Sandbox derived, as the entity "gmod_anchor" is a part of sandbox. Otherwise you could just copy over that entity to your gamemode.