Hostile
Category: Player
Since engine version: 4.6.5.0 CP
(extended in 4.9.5.0 CE)
Description
Determines whether two players are enemies. Two players will be opposed if at least one of them has declared hostility towards the other.
Syntax
bool Hostile
(int iPlr1, int iPlr2, bool fCheckOneWayOnly);
Parameters
- iPlr1:
First player
- iPlr2:
Second player
- fCheckOneWayOnly:
[opt]
If true, checks only if iPlr1 is hostile towards iPlr2 but not in reverse.
Example
Sven2, November 2001
Clonkonaut, April 2008