Difference between revisions of "0x0071"

From SimsWiki
Jump to: navigation, search
m (Cleaned up)
m (Overview: Small fix)
Line 18: Line 18:
 
?? - apparently unused
 
?? - apparently unused
  
Example:
+
==Example==
  
 
To snap the stack object 0 into the object in Local Variable 1, using the third slot:
 
To snap the stack object 0 into the object in Local Variable 1, using the third slot:
  
0a 00 00 19 01 00 03 87
+
0a 00 00 19 01 00 03 87
07 00 00 00 00 00 00 00
+
07 00 00 00 00 00 00 00
  
 
Values observed in another objects were used for the unknown opcodes.
 
Values observed in another objects were used for the unknown opcodes.

Revision as of 17:03, 14 August 2006

This primitive allows objects/sims to be snapped into each other's slots. This is used for accessories, as well as for objects. When an accessory is on a sim, it is in one of their Body Slots. When a sim is sleeping on a bed, the sim is snapped into the bed's slot.

Overview

AA aa aa BB bb bb ss xx
xx ?? ?? ?? ?? ?? ?? ??

AA - data owner of object to snap aa - value of data owner of object to be snapped

BB - data owner of object to snap into bb - value of data owner of object to be snapped into

ss - slot number to snap into

xx - Not sure about these 2 yet. the second one may be flags of some kind.

?? - apparently unused

Example

To snap the stack object 0 into the object in Local Variable 1, using the third slot:

0a 00 00 19 01 00 03 87
07 00 00 00 00 00 00 00

Values observed in another objects were used for the unknown opcodes.

See also

This article is imported from the old MTS2 wiki. It's original page, with comments, can be found at http://old_wiki.modthesims2.com/0x0071

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox