Skip to content

0x68 — global_visual_state

Global/object visual-state field writer. It writes through gpGlobalDB, gpObjectManager, and Radi fields, consuming bit-selected floats/words. No named calls are made in the traced body.

proven— handler traced, and exercised by at least one shipped script.

At a glance

Opcode0x68 (104)
HandlerCRadiScript::Command_68
SignatureCRadiScript::Command_68(int,SCR_DATA*,unsigned int,unsigned int)
Translation unitr_script_run6.cpp
Address— debug build; click for all 3
Handler size0x394 (916 bytes)
Engine nameglobal_visual_state
FamilyPrimitives, textures, sound and movies
Command size4 + extra_words * 4 bytes

Handler behaviour

Global/object visual-state field writer. It writes through gpGlobalDB, gpObjectManager, and Radi fields, consuming bit-selected floats/words. No named calls are made in the traced body.

Encoding

The command header is one 32-bit word, as described in §3 Instruction encoding:

 31            24 23            16 15             8 7              0
+----------------+----------------+----------------+----------------+
|  flags         |  argument byte |  extra words   |  0x68          |
+----------------+----------------+----------------+----------------+

Bits 8–15 give the number of 32-bit operand words that follow. Bits 16–23 are handed to the handler as a bitfield; on character commands bit 0 normally says whether a character selector word is present. Bit 31 is the keep-going bit.

Operand fields

5 documented fields. input fields are read from the command's operand words; derived fields are computed from other fields rather than stored separately.

FieldRoleMeaning
global_dbderivedWhether the gpGlobalDB field group is written.
global_db_floatinputFloat parameter for global db.
global_db_reservedinputRaw word written alongside the global-DB float, preserved verbatim.
object_visualderivedWhether the object-manager visual field group is written.
yieldderivedPause the script here for one game frame; the next command runs on the following update. Lines without it keep running immediately.

Engine calls

Engine functions this handler was observed calling:

  • (inline)

Bit masks

Masks the handler applies to its argument byte or operand words:

0x00FF 0x0001 0x0002 0x0003