Browsing Wiremod's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2023-04-01. It may be informal or outdated — anyone can edit this page to improve it.

Finding constrained entities without linking in E2

🔌 WiremodUpdated 2 days ago•0 views
Link the base entity (e.g. the gun) to the E2 with a wirelink, then use `Array = Entity:getConnectedEntities()` — it outputs every entity constrained to that en…

In Wiremod E2, how can I find all ammo crates or props connected to a contraption without linking each entity with an entity marker?

Link the base entity (e.g. the gun) to the E2 with a wirelink, then use `Array = Entity:getConnectedEntities()` — it outputs every entity constrained to that entity, so ammo crates can be found through the gun without linking them one by one. Direct entity-marker links were also avoided historically because they wouldn't stay linked after duping.

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.