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?
Team-specific trigger_hurt
Loffy
(Loffy)
#2
Trigger multiple set to triggerfor only axis/allies > script > activate a trigger hurt.
Elite
(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...
}
I can get onto it now.