IsEnemyPlayer¶
Check enemy player in current game state.
IsEnemyPlayer(player)
Inputs: player is Player value.
Output: true when the assigned player treats player as an enemy, false for another known relation, or nil when unavailable.
Errors and unavailable states: Wrong argument types can raise a Lua argument error. If available is false, ignore the first return value; it is not a confirmed result.
See Game data and world for related calls and usage notes.