Difference between revisions of "0x000C"
From SimsWiki
MogHughson (Talk | contribs) (Created page with "{{Primitive |name=Direction |opcode=0x000C |expansion=The Sims 2 }} ==Overview== This primitive provides a way to discover the direction from one object to anothe...") |
Revision as of 11:45, 5 November 2011
Direction | ||
---|---|---|
OpCode: | 0x000C | |
Game Version: | The Sims 2 |
Overview
This primitive provides a way to discover the direction from one object to another. The direction is between the object held in the Stack Object and a nominated other variable.
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 & 1 | qualifiers on the variable in operand 2. | |
2 | Variable to set with the distance between the two objects. 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 4 and 5 give the low and high order byte respectively. | |
3 | Unused | |
4 - bit 1 | When to take the direction from Me or from the variable in operand 5 | off: Me on: operand 5 |
5 | Variable containing the object to find the direction from the Stack Object. 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 4 and 5 give the low and high order byte respectively. | |
6 & 7 | qualifiers on the variable in operand 5. | |
8 - bit 1 | Controls "in degrees" | off: True on: False |
9 thru 15 | Unused |