aukimiaukimi
DocumentationTutorialsTipsForumCommunity
aukimi.com
Back to the documentation
JavaScript API
sprite49
math40
input29
animation22
material21
mesh20
vec320
inventory18
  • add
  • remove
  • has
  • count
  • get
  • getAll
  • clear
  • define
  • getInstance
  • removeInstance
  • updateInstance
  • query
  • setMaxSlots
  • setMaxWeight
  • getCapacity
  • onChange
  • save
  • load
postProcess18
scene18
quest16
light14
particles14
render13
ui13
atmosphere12
game12
color11
screen11
camera10
globals10
physics9
skybox9
decal8
draw8
saveSystem8
transform8
dialogue7
lifecycle7
physics2D7
terrain7
camera3P6
dayNight6
glow6
storage6
vehicle6
console5
highlight4
pathfinding4
water4
audio3
events3
hud3
physicsCollision3
world3
await modelLoader2
timer2
await timer1
modelLoader1
tween1
JavaScript API·inventory

inventory.count

Section: Inventory

What it does

inventory.count takes id.

Signature

inventory.count(id)

Arguments

  • id

Example · generated

function start() {  inventory.count('main');}

inventory.count is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

Previousinventory.hasNext inventory.get

18 members in inventory

aukimiaukimiAcademy

Learn aukimi - tutorials, courses and community help.

Learn

  • Documentation
  • Tutorials
  • Tips

Community

  • Forum
  • Community
  • Main site
  • The app

Legal

  • Privacy
  • Terms
© 2026 aukimi. All rights reserved.