๐Ÿ“–

ACE Wiki

The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.

Try:
๐Ÿ’ป
Developer DocsAPI Reference

๐ŸŒ™Lua

170 articles

Sort by:
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐ŸŒ™
๐ŸŒ™Lua

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
Loading more...
๐Ÿ“

Help Improve the Wiki

We know our documentation can be better. Quality wiki content takes time and expertise. If you're experienced with ACE and want to help, we'd love your contributions!