# Hostile

Player
5.1 OC
bool
int player1 First player
int player2 Second player
bool check_one_way If `true`, checks only if player1 is hostile towards player2 but not in reverse.
Determines whether two players are enemies. Two players will be opposed if at least one of them has declared hostility towards the other.
protected func RejectEntrance(object other) { return !Hostile(GetOwner(), GetOwner(other)); }
The object can only be collected by friendly players.
SetHostility
Sven2
2001-11
Clonkonaut
2008-04