constraint.Keepupright

From GMod Wiki

Revision as of 16:40, 25 May 2011 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax constraint.Keepupright( Entity Ent, Angle Ang, Number Bone, Number angularlimit )
Where is this used?
Description:
Creates a keep up right constraint.
Returns: Entity
Part of Library: constraint
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Constraint.Keepupright]Constraint.Keepupright [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionCreates an uprighted clock prop.
Used onNewerServer.png
Code
local ent = ents.Create( "prop_physics" )
ent:SetModel( "models/props_c17/clock01.mdl" )
ent:SetPos( Vector( 0, 0, 0 ) )
ent:Spawn()
ent:Activate()
constraint.Keepupright( ent, Angle(0,0,0), 0, 100000 )
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox