Skip to content

Natives

A native is a function built into the engine. You call one with a $, its namespace and its name: $entity.get_name(e). There are 2197 of them in 52 namespaces. The descriptions are the engine's own; parameters the compiler fills in for you are left out.

$animation26Drive animation trees and attributes on an entity.$bitwise9Bit operations on integers; the language has no bitwise operators of its own.$camera27Read and control cameras.$catch388Knockout City's own gameplay: players, balls, throws, catches, knockouts.$catch_match157The match: teams, rounds, scores and match flow.$catch_stat25Player statistics.$commerce133The store, currencies, offers and owned items.$component22Find components, send them events, and control which of your events are active.$comptrack2$container15Search and sort lists.$convert5Turn values of one type into another.$core1$cvar3$debug51Print to the log and draw debug shapes to see what a script is doing.$debug_playlist2$draw154Draw sprites, text and shapes on screen.$entity47Find, create and destroy entities; walk the hierarchy; read names and transforms.$hash1Hash strings into the integers the engine uses as names.$imgui46Build quick debug windows with Dear ImGui.$input59Read controller, mouse and keyboard input.$keycache4$keymap19$layers2$level1$locs13Localised text.$math86Vectors, rotations, interpolation, clamping, trigonometry.$movie12$navigation25Path-finding for bots.$net203Networking: whether you are the server, and which fields replicate.$package19$persistence15Values saved between sessions.$physics119Ray casts, overlaps, rigid bodies and collision.$psn_matches11$script1$static_entity5$string_utils16Work with strings.$support65Low-level helpers the language's own shorthand compiles to: reading fields, lists and components.$telemetry19$time26Game time, wall time, tick intervals and unit conversion.$timeline5$touch_box12$trace7$type14$ui_box_manager7$ui_box_member_manager7$user168Users: the people playing, their names, their players.$user_settings8$utility11$vfx17Visual effects.$voip75$world4Search the whole world for components.$wwise28Sound: post Wwise events and set parameters.