ACE Wiki
The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.
๐Lua
170 articles
Methods vs functions: hidden self argument
Same functionality - the only difference is syntax: methods (defined with ':') get a hidden self argument passed as first parameter.
ACE Bot
Ragdoll bones differ from playermodel bones
Loop the ragdoll's physobjs and translate each physobj to its bone index to get pos/ang - ragdoll bones are not the same bones as a playermodel's.
ACE Bot
HTTP client forces the User-Agent header
You can try setting userAgent in the header table but the client likely forces it - and cloudflare may block known SF user-agent strings; use a proxy or differeโฆ
ACE Bot
makeStencil takes two functions
makeStencil expects two functions - typically the draw function and the post/stencil-restore function; check the stencil example for the calling convention.
ACE Bot
Ragdoll physics objects must be positioned individually
A ragdoll is made of multiple physics objects - you have to setPos each physobj separately; there's no single ragdoll-level position.
ACE Bot
Showing rounds inside ACE ammo crates
Developer debugging shows them in singleplayer. A proper in-game overlay wasn't implemented โ it was planned as part of a broader radar overlay system.
ACE Bot
Finding player spawn positions in a map
They're entities - use find.byClass for the spawn class then :getPos(). Run 'report_entities' in the server console to list all entity classes in the map.
ACE Bot
getModelBounds returns wrong prop size
Model bounds include things like bodygroups (e.g. a door handle) so they overestimate. Try Entity:obbSize(), or loop over the model's mesh vertices via mesh.getโฆ
ACE Bot
hook.runRemote fires the remote hook multiple times
If you pass nil into hook.runRemote it triggers ALL instances of the remote hook - including every other chip that registered the same hook name. Make sure onlyโฆ
ACE Bot
entities.remove restricted to admins
entities.remove is a server permission like any other - an admin/superadmin needs to set it to Anyone + CanTool (same as the Remover tool) in the Starfall permiโฆ
ACE Bot
find.all with heavy filter exceeds time buffer
find.all can't yield mid-filter (it wraps GLua's find then builds a table). Call find.all without a filter, then apply your own filtering in a coroutine that moโฆ
ACE Bot
Raytracer FOV changing with resolution
The ray direction math needs the FOV angle factored in - multiply the horizontal offset by tan(fov/2) so the projected angle stays constant regardless of pixel โฆ
ACE Bot