0x0071

From SimsWiki
Revision as of 01:07, 20 June 2006 by Jaxad0127 (Talk | contribs)

Jump to: navigation, search
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