0x36 — character_anim_signal
Character animation signal query/update helper. It resolves a character/SSF object and can call CCharacterAnim::GetPlayingAnimationSignal, GetEventValueForScript, and SetEventValueForScript.
proven— handler traced, and exercised by at least one shipped script.
At a glance
| Opcode | 0x36 (54) |
|---|---|
| Handler | CRadiScript::Command_36 |
| Signature | CRadiScript::Command_36(int,SCR_DATA*,unsigned int,unsigned int) |
| Translation unit | r_script_run2.cpp |
| Address | — debug build; click for all 3 |
| Handler size | 0x444 (1092 bytes) |
| Engine name | character_anim_signal |
| Family | Characters |
| Command size | 4 + extra_words * 4 bytes |
Handler behaviour
Character animation signal query/update helper. It resolves a character/SSF object and can call CCharacterAnim::GetPlayingAnimationSignal, GetEventValueForScript, and SetEventValueForScript.
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 | 0x36 |
+----------------+----------------+----------------+----------------+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
7 documented fields. input fields are read from the command's operand words; derived fields are computed from other fields rather than stored separately.
| Field | Role | Meaning |
|---|---|---|
character | input | The packed 32-bit character selector word. Its low half is the character id and byte 2 is a secondary class/variant input; see character_number and character_variant. |
event_value | input | Script event-value id that the condition or command reads. |
name_source | derived | Selects where a name operand comes from, such as an inline four-word string. |
result_op | derived | Operation applied to result. |
signal_name | input | Name operand for signal. |
signal_raw_byte3 | input | Byte 3 of the packed signal raw entry. |
signal_selector | input | Selects which signal the handler acts on. |
Engine calls
Engine functions this handler was observed calling:
CCharacterAnim::GetPlayingAnimationSignal(float,const CHierarchicalObject*) constCCharacterManager::GetCharacterClass2(int,unsigned int,const CCharacter*,unsigned int)CQuaternion::ToEuler() constCRadiScript::GetCharacterID(unsigned int&,unsigned int&,unsigned int*,SCR_DATA*,unsigned int)CRadiScript::GetEventValueForScript(int,const SCR_DATA*)CRadiScript::SetEventValueForScript(int,int,SCR_DATA*)CSsfHandler::SearchName(const char*) constCVector::GetEuler(const CMatrix*)
Bit masks
Masks the handler applies to its argument byte or operand words:
0xFFFF 0x0001 0x0003 0x00FF 0x0041 0x0007