0x0071
Snap Into | ||
---|---|---|
OpCode: | 0x0071 | |
Game Version: | The Sims 2 |
Contents |
Overview
This primitive allows objects/sims to be snapped into each other's slots. This is used for accessories, as well as for objects. For example. when an accessory is on a sim, it is in one of their Body Slots; or when a sim is sleeping on a bed, the sim is snapped into the bed's slot.
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 | The Object to be snapped. 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 1 and 2 give the low and high order byte respectively. | |
1 & 2 | Variable number used for Object | |
3 | The Target for the object to be snapped into. 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 Target | |
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 | Controls "TEST ONLY" | off: False on: True |
9 - bit 3 | Controls "Reset root bones" | off: False on: True |
10 thru 15 | Unused? |
Problems?
I have had numerous problems with this instruction just not snapping into the provided slot and yet not reporting failure either. I'm not entirely sure why it does it, but sometimes, I just have to revert to using the option to immediately snap into a slot upon Create New Object Instances (0x002A) instead. Not always what you want, but at least provides an alternative.