constraint.AddConstraintTable
constraint.AddConstraintTable( Entity ent1, Entity constrt, Entity ent2 = nil, Entity ent3 = nil, Entity ent4 = nil )
Description
This is used internally - although you're able to use it you probably shouldn't.
Stores the constraint entity in the constrained entity's Constraints table.
This will make the constrt entity be removed if any of the other entities ent1, ent2, ent3 or ent4 are removed by any means.
To prevent this, constraint.AddConstraintTableNoDelete can be used instead.
Arguments
3 Entity ent2 = nil
Optional. If different from
ent1, the info will also be stored in the table for this entity.
Garry's Mod
Rust
Steamworks
Wiki Help