Skip to Content

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.

ObjectPurpose
Entities (base_entity_t)base_entity_t: schema field access, entity methods and entity lifetime.
gameeventGame event object passed to events.<event name> callbacks; fields are read by key name.
chat_message_tMutable HUD chat message passed to the player_chat callback.
view_setupMutable view setup passed to the override_view callback.
user_cmd_tRead-only snapshot of the user command passed to the createmove callback.
console.variableConsole variable handle returned by console.<name> and console.variables(): reading and setting values.
console.commandConsole command handle returned by console.<name> and console.commands().
panorama.objectLua wrapper around a JavaScript value from Panorama.
ray_tRay shapes for trace.shape: a line, an offset line, a sphere, a box or a capsule.
trace_filter_tTrace filter: interaction mask, collision group, entity iteration and an optional should_hit predicate.
trace_tResult of trace.line and trace.shape.
hitbox_tThe game's hitbox record (CHitBox) returned by e:hitbox(index) and tr.hitbox.
rn_collision_attr_tCollision attributes exposed by trace_t.shape_attributes.