Something like that, but now my novice brain's got some questions:
Is there a value for the 1st parameter of register_touch that does the same thing as xPaw's code? (instead of "*" somethign like "*sametype_class")
If not, witch one of this versions has a better performance?
PHP Code:
register_touch( "sametype_class1", "player", "sametype_touch" );
register_touch( "sametype_class2", "player", "sametype_touch" );
register_touch( "sametype_class3", "player", "sametype_touch" );
...
register_touch( "sametype_class100", "player", "sametype_touch" );
or
PHP Code:
register_touch( "*", "player", "sametype_touch" );
{
//filter stuff with xPaw's code using sametype_class substring
}
__________________