PDA

View Full Version : Change material on Static Mesh- Kismet



Shivan Hunter
03-01-2009, 04:03 PM
Title says it all. How do I change the material on a static mesh?

The mesh in question is the fluorescent light in LT_Light (the short one), and I want to change the material from the default to a custom one saved in my map (called BrokenLight).

[EDIT]Alternatively, I could have two instances of the mesh, and have one disappear and the other appear; but I don't see an Action for that either, and it seems more complex.

bclagge
03-01-2009, 04:49 PM
You have to use Material Instance Constants for the meshes.

Then in kismet: New Action--->Material Instance--->New Texture Parameter

I'm sure there's more to it, but as I haven't done it before I can't tell you more. That should get you started though.

Shivan Hunter
03-01-2009, 04:52 PM
Thx, I'll play around with that. :)

[EDIT]OK, how do I tell when a SM is shot (preferably, has been shot a certain # of times, such as twice with the Enforcer or once with the Rocket Launcher? I've tried the damagetaken thing under "New Event Using ...", but it doesn't seem to work.