Welcome to
Mod The Sims
Online: 2352
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 7 (Who?), Viewed: 1366 times.
Search this Thread
Old 14th Nov 2007, 08:12 PM DefaultSnap into body - snap to different bodypart #1
solfal
Original Poster

Lab Assistant

Join Date: Sep 2004
Posts: 152
Thanks: 1136 in 4 Posts
7 Achievements


Hi!
I have been able to get my sim to pick up an object and then snap the object to the head.
I would like to have the object in hand once again and then put down the object, but all I get is errors in this part.
Has it changed so the sim is the stack object insted of the object itself after [prim 0x0071] Snap Into (Object: Stack Object ID 0x0000,
Target: My 0x000B (object id)
In that case how do I put the object back as the stack object?

any help would be greatly appreciated
Screenshots
Click image for larger version

Name:  Pick up.jpg
Views: 0
Size:  95.7 KB  
Old 14th Nov 2007, 10:21 PM #2
Echo
Duck



Join Date: Dec 2004
Posts: 3,918
Thanks: 48079 in 48 Posts
26 Achievements

View My Journal


You should be able to snap the object back into the sim's hand using the same code as your existing "Snap Into". Just change the slot number to slot 0x00 (that's the right hand slot) instead of the head (hat?) slot. To put the object down, I normally just copy in a BHAV which already does that for an existing object.
Old 15th Nov 2007, 05:07 PM #3
solfal
Original Poster

Lab Assistant

Join Date: Sep 2004
Posts: 152
Thanks: 1136 in 4 Posts
7 Achievements


Thank You Echo!

It workes great!

I thought I did try this but I guess I forgot to add animations after the snap to hand so it disapeared instantly. ( I always tend to make those misstakes when I am making something I think is a little to complicated for me!)
Old 16th Nov 2007, 09:55 PM #4
solfal
Original Poster

Lab Assistant

Join Date: Sep 2004
Posts: 152
Thanks: 1136 in 4 Posts
7 Achievements


I thought I was so clever when I made test BEHAVs that asked for in use or not in use to tell if the sim could pick this crown up or if it is still on the head. The pick up part seems to work but as the sim still have it on the head when the interaction is over the other test doesnīt work. The item isnīt in use as far as the sims knows.

How could I write a BEHAV that asks if anything is atached to the sim head (slot 05), or is there another sulotion?

(I am working on a lucia crown. We celebrate Lucia here in sweden on the darkest day of the year. She has candles in her hair lightning up the dark Lucia morning.)
Download - please read all instructions before downloading any files!
File Type: rar SolfalLuciaWorkingCrown0710.rar (107.9 KB, 4 downloads) - View custom content
Old 16th Nov 2007, 10:25 PM #5
rebecah
Scholar

Join Date: Dec 2006
Posts: 1,355
Thanks: 98006 in 200 Posts
28 Achievements

View My Journal


The thinking cap uses as pictured:





Wouldn't that work similar? The "AspirationsReward - Thinking Cap" is GUI 0xED9BEC86.
Screenshots
Click image for larger version

Name:  Thinkingcap.jpg
Views: 0
Size:  25.8 KB  
Old 16th Nov 2007, 11:19 PM #6
Echo
Duck



Join Date: Dec 2004
Posts: 3,918
Thanks: 48079 in 48 Posts
26 Achievements

View My Journal


"In Use" is actually just a flag that gets set in your object's data (0x8, flag 0x6) under certain conditions. Most of the time, it gets set by you calling a "Standard Entry" and gets unset by calling a "Standard Exit". Since the rest of these calls probably aren't relevant for you (as the in-use has to last past the end of the interaction, you can just set that flag manually using expression to get much the same result.
Old 17th Nov 2007, 09:14 AM #7
solfal
Original Poster

Lab Assistant

Join Date: Sep 2004
Posts: 152
Thanks: 1136 in 4 Posts
7 Achievements


Thank you so much Rebecah and Echo!

I tried with the thinking cap line and as that workes I am so happy!

I have been wanting to make this the last couple of years and finally, with your great help, it workes!
Old 17th Nov 2007, 03:40 PM #8
rebecah
Scholar

Join Date: Dec 2006
Posts: 1,355
Thanks: 98006 in 200 Posts
28 Achievements

View My Journal


Fantastic Solfal! Congrads! I'm so glad the thinking cap idea was helpful.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.