Team-specific trigger_hurt


(denizsi) #1

I want to make a new entity that will only hurt the specified team (or specified (claasses), but I can’ tell if it’s actually possible. Anyone that can tell so?


(Loffy) #2

Trigger multiple set to triggerfor only axis/allies > script > activate a trigger hurt.


(Elite) #3

Example of checking if the entity is a player:

if (ent->s.eType == ET_PLAYER && ent->client) {
      code...
}

Example of checking the team of the player:

if (ent->s.teamNum == TEAM_AXIS) {
      code...
}

Example of checking player class:

if (ent->client->sess.playerType == PC_ENGINEER) {
      code...
}

(denizsi) #4

That’s really, thanks :slight_smile: I can get onto it now.