Mod The Sims

Mod The Sims (https://modthesims.info/index.php)
-   Object Creation (https://modthesims.info/forumdisplay.php?f=114)
-   -   Making objects go down with walls !!! (https://modthesims.info/showthread.php?t=222091)

Cooldadx4 26th Feb 2007 3:50 PM

Making objects go down with walls !!!
 
Hi,

I have a new problem for my gutters I made ...Someone requested I make them go down with walls so that they dissappear when you have walls down ...I have searched everywhere for the past 2 hours looking for this info ...Anyone know what bhavs I have to add in order to accomplish this ?

Jasana_BugBreeder 26th Feb 2007 4:57 PM

Add the following line to the Init bhav:

[prim 0x0002] Expression (My 0x0008 (flags) Set Flag flag# Literal 0x000B (hide for cutaway))

Opcodes are 08000B00000903070000000000000000.


Though, are your gutters wall-mounted (like paintings)? If not, I'm not sure if 'hide for cutaway' flag will work If it will not, somehow, you might use 'obstructs view' flag instead - it is used, for example, by stairs, big trees, and ceiling lamps:

[prim 0x0002] Expression (My 0x0028 (flag field 2) Set Flag flag# Literal 0x0004 (Obstructs View))

Opcodes are 28000400000903070000000000000000.

Good luck

Cooldadx4 26th Feb 2007 5:16 PM

no they are not wall mounted but I will try out the hide for cutaway first ....hopefully it works ...If not i guess i will have to use the other one ....Thank You !!!!!


nope didnt work with the hide for cutaway ....maybe if i add that it can be placed on walls ????

JohnBrehaut1 27th Feb 2007 5:00 AM

Tigmomx4, did you delete then rebuy the gutters? Because the Init bhav is only loaded once (when bought). :D

Cooldadx4 27th Feb 2007 6:02 AM

yes i went to a completely different lot and made a square house to test and they didnt dissappear when i put the walls down ..i think it is because the object isnt technically placed on a wall it is on the ground (cloned statue) and therefore when you select walls down it is not told to go down because it isnt on the wall ...Im wondering though if there is a way to make it "think" it is on a wall without having to redo the whole package ..

JohnBrehaut1 27th Feb 2007 6:25 AM

hmm.... Well I think I remember seeing something about fade distance in the Material definition, I ended up having to change it because the plant in my office set kept fading until I changed it, but I can't remember what. Try having a look in that file and add some lines to material dif, except with opposite values of the fade one.

Lethe_s 27th Feb 2007 11:06 AM

tigmom,
there's also a bhav for making something stick to a wall (check out the numenor article on it in the modding infocenter here)
but I noticed that it's usually far easier to just reclone it from a painting, if you want it to go down with the walls.
If you clone it from a statue, I think that you need to make it 'require wall on back', and go down with walls, and *something else* I haven't figured out yet. But if you clone it from a painting, you just need to add the bhav for going down with walls.


All times are GMT +1. The time now is 11:44 AM.

Powered by: vBulletin Version 3.0.14 · Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.