API Reference
Every namespace TSUKI serves itself, with one line on what each covers. These work in any script, with nothing to declare. The feeds that need the internal have their own section: Internal API Reference.
New to scripting here? Start with Getting Started and Script Structure.
Core
| Page | What it covers |
|---|---|
| Globals | Top-level functions and the storage namespace, callable from any script. |
| Player | The player object: health, weapons, bones, hitboxes, modifiers and screen space. |
| Entities | Troopers, jungle camps, the midboss, crates, powerups and other world objects, by class or by curated type. |
| Events | Callbacks the engine invokes on kills, casts, particles, modifiers and sounds. |
Aiming
| Page | What it covers |
|---|---|
| Targeting | Target selection helpers and aim math in the targeting.* namespace. |
| Prediction | Projectile leading and motion tracking via solve_linear and solve_ballistic. |
| Camera | Local camera state and world-to-screen conversion. |
Output
| Page | What it covers |
|---|---|
| Draw | 2D and 3D primitives, buffered per tick. |
| UI | Custom menu widgets: tabs, sliders, checkboxes and color pickers. |
Input and data
| Page | What it covers |
|---|---|
| Input | Keyboard and mouse state, using Windows VK codes. |
| HTTP | Asynchronous GET and POST that never block your script. |
| Memory | Direct memory reads, for offsets you found yourself. |
Constants
| Page | What it covers |
|---|---|
| Types & Constants | Vec2 and vec3 math types, plus modifier_flag, slot, bone and hero_id. |
| Modifier Flags | All 303 modifier_flag constants. |
The internal API
These need the internal running and needs_internal = true in your script_info.
| Page | What it covers |
|---|---|
| Internal API Reference | What the flag turns on, when a call returns nil, and how to tell whether the internal is running. |
| Stats | Resolved resists, shields, barrier and your own weapon numbers. |
| Ability Values | The resolved value of an ability property, upgrades and scaling folded in. |
| Hit Events | Per-hit damage events for hits you dealt or took, plus the running tally. |
| Entity Properties | One schema field by name off a player or an entity row. |
| Traces | Ask the game what a line hits. |
| Aim | The scripted aim path: aim.silent, aim.shoot, aim.can_reach. |