# AISelfDefenseThreatEval
Flags —
Native
# Arguments
int
— typeint
— player
Returns — int
native int AISelfDefenseThreatEval(int type, int player);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:329
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:366
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:403
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:547
}
threatEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (threatEval < 100) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:571
}
threatEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (threatEval < 300) {
return false;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeLowAI.galaxy:435
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeLowAI.galaxy:577
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeLowAI.galaxy:719
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:447
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 100) {
if (AIEvalAllSelf(player) + 80 < defenseEval) {
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:329
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:366
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:403
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 120) {
// don't expand if currently under attack
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:547
}
threatEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (threatEval < 100) {
return false;
mods/void.sc2mod — base.sc2data/TriggerLibs/MeleeHighAI.galaxy:571
}
threatEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (threatEval < 300) {
return false;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:467
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 100) {
if (AIWaveEval(AIWaveGet(player, c_waveMain)) + AIWaveEval(AIWaveGet(player, c_waveDefend)) + 80 < defenseEval) {
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:537
}
defenseEval = AISelfDefenseThreatEval(c_dtRealSelfThreat, player);
if (defenseEval >= 100) {
if (AIWaveEval(AIWaveGet(player, c_waveMain)) + AIWaveEval(AIWaveGet(player, c_waveDefend)) + 80 < defenseEval) {