0x0078
From SimsWiki
Revision as of 19:52, 30 October 2011 by MogHughson (Talk | contribs)
RayTrace | ||
---|---|---|
OpCode: | 0x0078 | |
Game Version: | The Sims 2 |
Overview
This primitive provides a way to check whether there is a clear view of one object from another - for example can the TV be seen.
Use
There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands.
Operand | Description | Operand Values |
---|---|---|
0 | Unused? | |
1 | The Object from which to make the ray trace. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 2 and 3 give the low and high order byte respectively. | |
2 & 3 | Variable number used for Object | |
4 | Specific point of the Object | 00: default 3/4 height 01: targeting slot: 0xnn (see operand 5) 02: routing slot: 0xnn (see operand 5) 03: containment slot: 0xnn (see operand 5) |
5 | Slot number used for the various slot related options of operand 4 | |
6 thru 7 | unused | |
8 | The Target towards which to make the ray trace. The choices are any of the many variables and attributes that are part of SimAntics. Where the variable type can have many of them, e.g. Local variables, operands 9 and 10 give the low and high order byte respectively. | |
9 & 10 | Variable number used for Target | |
11 | Specific point of the Target | 00: default 3/4 height 01: targeting slot: 0xnn (see operand 12) 02: routing slot: 0xnn (see operand 12) 03: containment slot: 0xnn (see operand 12) |
12 | Slot number used for the various slot related options of operand 11 | |
13 thru 14 | unused | |
15 | Controls "Windows Ignored | off: False on: True |