Difference between revisions of "0x0014"
MogHughson (Talk | contribs) |
MogHughson (Talk | contribs) |
||
Line 35: | Line 35: | ||
|3 thru 15||colspan="2"|unused | |3 thru 15||colspan="2"|unused | ||
|} | |} | ||
+ | |||
+ | ==Examples== | ||
+ | * [[BHAV:Pick Up / Put Down|Picking up and putting down an object]] | ||
==See also== | ==See also== | ||
*[[Primitives]] | *[[Primitives]] | ||
*[[SimAntics]] | *[[SimAntics]] |
Revision as of 19:12, 23 April 2011
Run Functional Tree | ||
---|---|---|
OpCode: | 0x0014 | |
Game Version: | The Sims 2 |
Contents |
Overview
This primitive provides a way to run one of the main functions within the game that an object provides. It is often used after running Find Best Object for Function [0x000D] which has the effect of setting the object that it found in the Stack Object variable. You can set an object you know has such a function into the Stack Object variable yourself prior to running this primitive instead if you wish.
Functions
The functions in question are all shown in the Object Functions(OBJf) of the object you want to run them against (the OBJf has a number of other functions as well as the ones you can run in this way). In general (as in the example) these functions are provided with an Action BHAV and a Guardian BHAV. You can choose to run the Guardian BHAV only by selecting the bit that controls "running check tree only".
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 change icon | off: False on: True |
2 - bit 2 | Controls passing parameters from calling tree | off: False on: True |
2 - bit 3 | Controls running check tree only | off: False on: True |
3 thru 15 | unused |