Skip to content

Player:IsAlliedWith

Check whether this player is allied with another player.

player:IsAlliedWith(other)

Inputs: other is a Player value.

Output: Boolean or nil. Directed alliance relation; nil when unavailable. Self and Gaia are distinct from allied.

Errors and unavailable states: A wrong receiver or argument type can raise a Lua argument error. An unavailable live read returns nil as described in Output.

See Lua values and game objects for lifetime and enum guidance.