SC2Mapster.com Wiki

SC2 API / Functions / PlayerGetAlliance

PlayerGetAlliance

bool PlayerGetAlliance(int player, int type, int target);

Alliance state equality of player towards target.

Parameters

int player

Player slot.

int type

Alliance type to be used in comparison. Possible types are:

  • 0 (c_allianceIdPassive)
  • 1 (c_allianceIdVision)
  • 2 (c_allianceIdControl)
  • 3 (c_allianceIdSpend)
  • 4 (c_allianceIdTrade)
  • 5 (c_allianceIdSeekHelp)
  • 6 (c_allianceIdGiveHelp)
  • 7 (c_allianceIdChat)
  • 8 (c_allianceIdDefeat)
  • 9 (c_allianceIdPushable)
int target

Target slot.

Return value

bool - True or false, whether the player has the type of alliance towards target.

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Mar 13, 2010
Last updated
Mar 27, 2010