Posted By: Dreher
Changing Skins - 06/04/09 16:28
Hello,
I've got a model, and that model contains a few skins, 1 for the Model itself, 1 for the 3D Lights that are on that model, and 1 for textured lights.
http://img189.imageshack.us/img189/8585/lightproblem.png
All these lights you see here (I put some black circles around them lights I talk about) I want to let them 'flash' (Like a stroboscoop but not so fast, lol!)
Ok, I've split all these lights on the back, into 3 groups, and assigned a red texture to them, and now I want to let them flash by changing for example, it's ambient every once a second, so it'll look realistic.
Problem by using: my.skin = 5; (for example) it makes my whole model get the colour I assigned to these lights in MED
I tried ent_mtlset but I don't get this to work either!
EDIT: So, an example: You have a tree with leafes, they both use a different skin but they are both in one .MDL.
How to ONLY change the skin of the leafes with script, and keep the tree skin unchanged?
I've got a model, and that model contains a few skins, 1 for the Model itself, 1 for the 3D Lights that are on that model, and 1 for textured lights.
http://img189.imageshack.us/img189/8585/lightproblem.png
All these lights you see here (I put some black circles around them lights I talk about) I want to let them 'flash' (Like a stroboscoop but not so fast, lol!)
Ok, I've split all these lights on the back, into 3 groups, and assigned a red texture to them, and now I want to let them flash by changing for example, it's ambient every once a second, so it'll look realistic.
Problem by using: my.skin = 5; (for example) it makes my whole model get the colour I assigned to these lights in MED
I tried ent_mtlset but I don't get this to work either!
EDIT: So, an example: You have a tree with leafes, they both use a different skin but they are both in one .MDL.
How to ONLY change the skin of the leafes with script, and keep the tree skin unchanged?