Replies: 6 (Who?), Viewed: 2901 times.
Greatest Dad Ever
Original Poster
#1 Old 26th Feb 2007 at 3:50 PM
Default 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 ?
Advertisement
Instructor
#2 Old 26th Feb 2007 at 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
Greatest Dad Ever
Original Poster
#3 Old 26th Feb 2007 at 5:16 PM Last edited by tigmomx4 : 26th Feb 2007 at 5:39 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 ????
Forum Resident
#4 Old 27th Feb 2007 at 5:00 AM
Tigmomx4, did you delete then rebuy the gutters? Because the Init bhav is only loaded once (when bought). :D
Greatest Dad Ever
Original Poster
#5 Old 27th Feb 2007 at 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 ..
Forum Resident
#6 Old 27th Feb 2007 at 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.
Fluffy
retired moderator
#7 Old 27th Feb 2007 at 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.
Back to top