Returns whether two units can cooperate. Two units are considered to be able to cooperate with each other if they are of the same faction and are both players.
See also Unit functions.
Signature:
canCooperate
=
UnitCanCooperate("unit",
"unit")
Arguments:
Returns:
canCooperate
- 1 if the two units can cooperate with each other; otherwise nil (1nil
)