Difference between revisions of "0x000E"
From SimsWiki
MogHughson (Talk | contribs) (Created page with '{{Primitive |name=Find Best Object for Function |opcode=0x000E |expansion=The Sims 2 }} ==Overview== This primitive provides a way to locate an appropriate object…') |
MogHughson (Talk | contribs) (→Overview) |
||
Line 6: | Line 6: | ||
==Overview== | ==Overview== | ||
− | This [[Primitives|primitive]] provides a way to locate an appropriate object for one of the main functions within the game. | + | This [[Primitives|primitive]] provides a way to locate an appropriate object for one of the main functions within the game. It is often used prior to running [[0x0014|Run Functional Tree [0x0014]]]. |
+ | |||
<br clear="all"/> | <br clear="all"/> | ||
+ | |||
==Use== | ==Use== | ||
There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands. | There is no instruction wizard for this instruction, so the following table details the meaning of each of the operands. |
Revision as of 20:06, 23 January 2011
Find Best Object for Function | ||
---|---|---|
OpCode: | 0x000E | |
Game Version: | The Sims 2 |
Overview
This primitive provides a way to locate an appropriate object for one of the main functions within the game. It is often used prior to running Run Functional Tree [0x0014].
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 | Function | 00: prepare food 01: cook food 02: flat surface 03: ... |
1 | Unused | |
2 - bit 1 | Controls Outside Only | off: False on: True |
2 - bit 2 | Controls Inside Only | off: False on: True |
2 - bit 3 | Controls In Room Only | off: False on: True |
2 - bit 4 | Controls Relative to | off: Relative to me on: Relative to object referred to by Variable in operand 3 |
2 - bit 5 | Controls In Line Of Sight | off: False on: True |
2 - bit 6 | Unused? | |
2 - bit 7 | Controls Ignoring Lockout | off: False on: True |
3 | Variable containing object which function is found relative to. 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. | |
4 & 5 | qualifiers on the variable from operand 3, eg. Local(0xnnnn) | |
6 thru 15 | unused |