Difference between revisions of "0x0071"

From SimsWiki
Jump to: navigation, search
(Use)
(Use)
Line 35: Line 35:
 
|9 - bit 1||Slot number provided in Temp 0x0000||off: Slot number is in Operand 6<br>on: Slot number is in Temp 0x0000
 
|9 - bit 1||Slot number provided in Temp 0x0000||off: Slot number is in Operand 6<br>on: Slot number is in Temp 0x0000
 
|-
 
|-
|9 - bit 2||Controls “TEST ONLY”||off: False<br>on: True
+
|9 - bit 2||Controls "TEST ONLY"||off: False<br>on: True
 
|-
 
|-
|9 - bit 3||Controls “Reset root bones”||off: False<br>on: True
+
|9 - bit 3||Controls "Reset root bones"||off: False<br>on: True
 
|-
 
|-
 
|10 thru 15||colspan="2"|Unused?
 
|10 thru 15||colspan="2"|Unused?

Revision as of 12:13, 31 January 2010

Snap Into
OpCode:0x0071
Game Version:The Sims 2


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 editing
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 Variable number used for Object
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 Variable number used for Target
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?

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox