Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

e2 docs constraint

📁 EntitiesUpdated 1 hour ago•0 views
Constraint = :getConstraints() Returns an array with all entities directly or indirectly constrained to E, except E itself. Deprecated, use E:getConnectedEntities(...) instead. (20 ops) = :getConnecte

Jump to table of contents

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(...)
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)

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.