Objects
Objects passed to callbacks or returned by the API: entities, events, commands, console handles, Panorama values and trace types.
Object methods are called with : unless documented otherwise. Each object type has its own page.
| Object | Purpose |
|---|---|
Entities (base_entity_t) | base_entity_t: schema field access, entity methods and entity lifetime. |
gameevent | Game event object passed to events.<event name> callbacks; fields are read by key name. |
chat_message_t | Mutable HUD chat message passed to the player_chat callback. |
view_setup | Mutable view setup passed to the override_view callback. |
user_cmd_t | Read-only snapshot of the user command passed to the createmove callback. |
console.variable | Console variable handle returned by console.<name> and console.variables(): reading and setting values. |
console.command | Console command handle returned by console.<name> and console.commands(). |
panorama.object | Lua wrapper around a JavaScript value from Panorama. |
ray_t | Ray shapes for trace.shape: a line, an offset line, a sphere, a box or a capsule. |
trace_filter_t | Trace filter: interaction mask, collision group, entity iteration and an optional should_hit predicate. |
trace_t | Result of trace.line and trace.shape. |
hitbox_t | The game's hitbox record (CHitBox) returned by e:hitbox(index) and tr.hitbox. |
rn_collision_attr_t | Collision attributes exposed by trace_t.shape_attributes. |
