Difference between revisions of "0x0071"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
m
Line 1: Line 1:
{{OldWikiEntry}} Snap Into (0x71)
+
{{OldWikiEntry}}
 +
=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.
 
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.
Line 30: Line 31:
 
I used some values that I have seen used in another object for the unknown opcodes.
 
I used some values that I have seen used in another object for the unknown opcodes.
  
[[Category:Modding]]
+
=See also=
 +
*[[Primitives]]
 +
*[[SimAntics]]
 +
 
 +
[[Category:Modding]]

Revision as of 01:07, 20 June 2006

This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/0x0071

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.


d1 - data owner of object to snap v1 - value of data owner of object to be snapped

d2 - data owner of object to snap into v2 - value of data owner of object to be snapped into

sn - slot number to snap into

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

xx - apparently unused


d1 v1 v1 d2 v2 v2 sn ?? ?? xx xx xx xx xx xx xx

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

I used some values that I have seen used in another object for the unknown opcodes.

See also

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox