For each model, have it save a material ID in a skill, like this:

Code:

#define type, skill20
#define id_grass 1
#define id_wood 2
#define id_metal 3
#define etc...

action object()
{
...
my.type = id_grass;
...
}



Then just have the trace check you.type


xXxGuitar511
- Programmer