Finding constrained entities without linking in E2
🔌 Wiremod•Updated 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.