Skip to main content
Apocalypse Rising 2 only. World-level interaction. (Your inventory lives on api.client: see the AR2 client section for getItems, equipItem, useItem, and the rest.)

Methods

CallWhat it does
ping(position)Drop a world ping at a Vector3.
pingPlayer(player)Drop a world ping on a player’s current position.
clearPing()Clear your world ping.

Example

-- Ping the nearest enemy
local target = api.legitbot.getTarget()
if target then
    api.game.pingPlayer(target.player)
end