Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
AR2 api.game: world pings, your squad, and zombies.
api.client
getItems
equipItem
useItem
ping(position)
Vector3
pingPlayer(player)
clearPing()
getSquad()
Player
isSquadmate(player)
getZombies()
Model
:Connect(callback)
onSquadChanged
()
onZombieAdded
(zombie: Model)
onZombieRemoved
-- Ping the nearest enemy local target = api.legitbot.getTarget() if target then api.game.pingPlayer(target.player) end -- Squad roster pill api.game.onSquadChanged:Connect(function() api.ui.toast(`Squad: {#api.game.getSquad()} members`) end)