view_setup
Mutable view setup passed to the override_view callback.
Passed by events.override_view(fn).
| Field | Type | Access |
|---|---|---|
view.world_fov | number | Read/write; assignment requires a number. |
view.viewmodel_fov | number | Read/write. |
view.origin | vector* | Live pointer; component writes move the camera. |
view.angles | angle* | 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.
