JFD
Kathigitarkh
I have some code that checks for what other players my civilisation is friends with. This works perfectly fine for the human/active player, but fails to pass with the AI.
Is there any inherent reason why this check might work for the active player, but fail for the AI?
Code:
for otherPlayerID, otherPlayer in pairs(Players) do
if otherPlayer:IsAlive() and otherPlayer ~= player and not otherPlayer:IsMinorCiv() then
if otherPlayer:IsDoF(player) then
print("friend: " .. otherPlayer:GetName())
table.insert(friends, otherPlayerID)
end
end
end
Is there any inherent reason why this check might work for the active player, but fail for the AI?