Difference between revisions of "0x0074"
MogHughson (Talk | contribs) (→Overview) |
MogHughson (Talk | contribs) (→Use) |
||
Line 19: | Line 19: | ||
|0 thru 2||colspan="2"|Unused? | |0 thru 2||colspan="2"|Unused? | ||
|- | |- | ||
− | |3||colspan="2"|The '''Object''' to be used. The choices are any of the many [[Sims 2 Variables|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||colspan="2"|The '''Object''' to be used. The choices are any of the many [[Sims 2 Variables|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 [[Byte Order|low and high order byte]] respectively. |
|- | |- | ||
− | |4 | + | |4 & 5||colspan="2"|Variable number used for '''Object''' |
− | + | ||
− | + | ||
|- | |- | ||
|6||colspan="2"|Slot number | |6||colspan="2"|Slot number |
Revision as of 15:55, 24 April 2011
Reach/Put | ||
---|---|---|
OpCode: | 0x0074 | |
Game Version: | The Sims 2 |
Contents |
Overview
This primitive is to allow your Sim to pick up and put down objects. You can provide animations to make the grasping of the object look appropriate for the object, there are certainly plenty of existing animations that would probably work fine for many things. It is also possible to use "none" instead which is always worth trying prior to searching for an appropriate animation in case it looks good enough.
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 thru 2 | Unused? | |
3 | The Object to be used. 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 | Variable number used for Object | |
6 | Slot number | |
7 & 8 | Unused? | |
9 - bit 1 | Slot number provided in Temp 0x0000 | off: Slot number is in Operand 6 on: Slot number is in Temp 0x0000 |
9 - bit 2 | Handedness | off: -- on: handedness is in Temp 0x0003 |
9 - bit 3 | Controls "use Sim age to pick object Anim" | off: False on: True |
10 | Action to be taken | 00: Pick up: Object 01: Drop onto: Floor 02: Drop onto: Object |
11 & 12 | grasp animation number or 0xFFFF for "none" | |
13 & 14 | object animation number or 0xFFFF for "none" | |
15 | Unused? |
Problems
I have never been successful in getting a Put Down action to work to put an object back into the same slot in the same object that you just picked it up from. Best alternative is to use Run Function Tree (0x0014) with a function of 'flat surface'. See the example below.