Garry's Mod Wiki

construct

The construct library is used to control the physical properties of entities.

Methods

Entity construct.Magnet( Player ply, Vector pos, Angle ang, string model, string material, number key, number maxObjects, number strength, number nopull = 0, number allowrot = 0, number startOn = 0, number toggle, Vector vel = Vector( 0, 0, 0 ), Angle aVel = Angle( 0, 0, 0 ), boolean frozen = false )
Creates a magnet.
construct.SetPhysProp( Player ply, Entity ent, number physObjID, PhysObj physObj, table data )
Sets props physical properties.