Difference between revisions of "0x0071"

From SimsWiki
Jump to: navigation, search
m
m (Cleaned up)
Line 1: Line 1:
{{OldWikiEntry}}
+
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 [[BodySlots|Body Slots]].  When a sim is sleeping on a bed, the sim is snapped into the bed's slot.
=Snap Into (0x71)=
+
  
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
  
d1 - data owner of object to snap
+
BB - data owner of object to snap into
v1 - value of data owner of object to be snapped
+
bb - value of data owner of object to be snapped into
  
d2 - data owner of object to snap into
+
ss - slot number to snap into
v2 - value of data owner of object to be snapped into
+
  
sn - slot number to snap into
+
xx - Not sure about these 2 yet.  the second one may be flags of some kind.
  
?? - Not sure about these 2 yet.  the second one may be flags of some kind.
+
?? - apparently unused
 
+
xx - apparently unused
+
 
+
 
+
d1 v1 v1 d2 v2 v2 sn ??
+
?? xx xx xx xx xx xx xx
+
  
 
Example:
 
Example:
Line 29: Line 25:
 
07 00 00 00 00 00 00 00
 
07 00 00 00 00 00 00 00
  
I used some values that I have seen used in another object for the unknown opcodes.
+
Values observed in another objects were used for the unknown opcodes.
  
=See also=
+
==See also==
 
*[[Primitives]]
 
*[[Primitives]]
 
*[[SimAntics]]
 
*[[SimAntics]]
 +
 +
{{OldWikiEntryCleaned}}
  
 
[[Category:Modding]]
 
[[Category:Modding]]

Revision as of 11:02, 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