void (*old_Update)(void *instance);
void Update(void *instance) {
if(instance!=NULL) {
int Team = General_get_Team(instance);
if(Team=1) { // Type whatever team color number here, I use 1 as an example. Look in TeamType for this.
// Some code that you want to do here
}
}
old_Update(instance);
}