Skip to main content
Apocalypse Rising 2 only. Guard with if api.client.x then before calling on other games.

Getters

AR2 notes: getMaxHealth() is always 100 (the game’s base) and getHealthFraction() is relative to that. isSpectating() is always false. getTeam() reflects the local team string only. onKill is not available in AR2 — only onHit.

Inventory

Read your gear and nearby loot, then move items around. Item ids come from the read calls; pass an item’s id to the action calls. These are the same moves you can do by hand, so the server still enforces space, valid slots, and so on. See Item.

Examples