View Full Version : [solved]Changeing The Texture Via Bhav's

24th Nov 2008, 6:31 PM
Is their an tutorial someone can derect me to? I am trying to make an object that changes it's texture when theirs an fire in the room. i copyed the bhav's from the smoke detecter and everything elece, but i cant get the texture to switch over when theirs a fire in the room.

Inge Jones
24th Nov 2008, 6:53 PM
I don't know about the tutorial but basically you want to have a material/texture pair of resources and it's the material you switch to, which automatically gets the paired texture. You put the material names in STR#0x88 and then change between them by some code similar to:

0000 : 006D : 00 : 0001 : FFFC : 03000001000A00000000000000000000
[prim 0x006D] Change Material (Target: Stack Object ID 0x0000, Material from: Me (material: "##0x1C050000!ijaptctrlr3-[0b2aeb5b-68d5-4845-9cb2-eff69dae9d9f]_front" [MaterialName:0x03 (Private)]), Mesh from: Me (mesh group: [UNK: MeshGroup:0x01 (Private)]))

0001 : 0007 : 00 : FFFD : FFFD : 01000000000000000000000000000000
[prim 0x0007] Refresh (stack object's graphic)

When you switch back to the normal material though, I am not sure if it will have lost any recolour applied to it and be back to default.

25th Nov 2008, 5:18 PM
Thank You Inge Jones! I'll try it as soon as i can!