Jass:MeleeCheckLostUnit
Aus Mappedia
| Funktion: MeleeCheckLostUnit | |
|---|---|
| Parameter: | unit |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function MeleeCheckLostUnit takes unit lostUnit returns nothing local player lostUnitOwner = GetOwningPlayer(lostUnit) // We only need to check for mortality if this was the last building. if (GetPlayerStructureCount(lostUnitOwner, true) <= 0) then call MeleeCheckForLosersAndVictors() endif // Check if the lost unit has crippled or uncrippled the player. // (A team with 0 units is dead, and thus considered uncrippled.) call MeleeCheckForCrippledPlayers() endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| unit | lostUnit |
