Skip to Content

view_setup

Mutable view setup passed to the override_view callback.


Passed by events.override_view(fn).

FieldTypeAccess
view.world_fovnumberRead/write; assignment requires a number.
view.viewmodel_fovnumberRead/write.
view.originvector*Live pointer; component writes move the camera.
view.anglesangle*Live pointer.

Whole-value assignment to origin or angles also accepts compatible vectors or angles.

Unknown fields read as nil; writing one raises view_setup: unknown field '<name>'. After the callback returns, any access to the view object raises view_setup used after its override_view call returned. Do not retain its pointers either: they reference game memory and could affect a later frame.

tostring(view) returns view_setup.

view_setup changes only the rendered camera. NIXWARE's own features and the viewmodel continue using the position from before the callback.