e2 docs constraint - wiremod/wire GitHub Wiki
Constraint
=
:getConstraints()
Returns an array with all entities directly or indirectly constrained to E, except E itself. Deprecated, use E:getConnectedEntities(...) instead. (20 ops)
=
:getConnectedEntities(... This)
Returns an array with all entities directly or indirectly constrained or parented to E, including E itself. (20 ops)
=
:getConnectedEntities(
Filters)
Returns an array with all entities directly or indirectly constrained or parented to E, including E itself. (20 ops)
=
:hasConstraints()
Returns the number of the constraints E has (5 ops)
=
:hasConstraints(
Constrainttype)
Returns the number of the constraints E has with the given constraint type (5 ops)
=
:isConstrained()
Returns 1 if E has constraints, 0 if not (5 ops)
=
:isWeldedTo()
Returns the first entity E was welded to (5 ops)
=
:isWeldedTo(
Index)
Returns the Nth entity E was welded to (5 ops)
=
:isConstrainedTo()
Returns the first entity E was constrained to (5 ops)
=
:isConstrainedTo(
Index)
Returns the Nth entity E was constrained to (5 ops)
=
:isConstrainedTo(
Constrainttype)
Returns the first entity E was constrained to with the given constraint type (see the types list below) (5 ops)
=
:isConstrainedTo(
Constrainttype,
Index)
Returns the Nth entity E was constrained to with the given constraint type (see the types list below) (5 ops)
=
:parent()
Returns the entity E is parented to (5 ops)
=
:parentBone()
Returns the bone E is parented to (5 ops)
=
:children()
Returns an array containing all the children of the entity - that is, every entity whose parent is this entity (20 ops)