Co-op Rescuable Units

Status
Not open for further replies.

Pharos

P

Pharos

I'd like to know how to make a faction flagged as Rescuable able to be rescued by players other than Player 1.

I'm working on a co-op map at the moment, and it seems that only Player 1 can rescue units. If player 2 attempts to, the units remain passive.
 
JASS:
constant alliancetype ALLIANCE_RESCUABLE = ConvertAllianceType(8)

native SetPlayerAlliance takes player sourcePlayer, player otherPlayer, alliancetype whichAllianceSetting, boolean value returns nothing
native SetUnitRescuable takes unit whichUnit, player byWhichPlayer, boolean flag returns nothing

So there is an alliance treaty between players aiming at rescuing and you can determine what units are rescuable by which players.

I guess for the first option the player, whose units are rescued, may need to be flagged as Rescuable controller.
 
I am not experienced with JASS, but I will see how to implement this.
 
Status
Not open for further replies.
Back
Top