Allied team system

Hey all,

I was wondering if there was a way I could make some teams not be able to kill other teams if you’re on that team. Like being an ally sort of team system. Can anyone do this or help me do this. Thanks from John.

3 Likes

Just to clarify, are you asking for a reverse anti-team-kill script?

You should move this to Scripting support

2 Likes
if TargetPlayer.Team ~= AlliedTeam then -- If target is not on an allied team then
    print("Enemy team. Attacking")
else
    print("Player is on an allied team")
end

Place this wherever you are damaging the target player.
^^ Please move this to #development-support:scripting-support

3 Likes

Well yeah you can’t kill some teams.

1 Like