Huh, I didn't know I had to use a Material. Thanks again.

But, I ended up doing this anyways:

Code:

if (mouse_left == 1) //mouse button is depressed
{
if (mouse_ent == me)
{
my.selected=1;
}
else
{
my.selected=0;
}

if (my.selected == 1)
{
my.material=Selected_mat;
}
else
{
my.material=Normal_mat;
}
}



It works fine, but I am worried about massive slow-downs whenever a player clicks. Also, it is a little hard to select the unit. It appears to not be using the bounding box. Can I get it to use the bounding box instead?

And, while I am asking newbie questions: Why is the mouse not appearing when I go to full screen mode (w/ VideoSwitch)? it just isn't visible, I can still select the unit.


If I am posting, it probably means I am asking a question. Or faking my knowledge by agreeing with somebody else.