# AIGetObstruction
Flags —
Native
# Arguments
int
— player
Returns — unit
native unit AIGetObstruction(int player);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:281
//--------------------------------------------------------------------------------------------------
void AIWaveClearObs (int player, wave w) {
unit obstruction = AIGetObstruction(player);
unit oldTarget = null;
int obsLife;
mods/core.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:342
// See if there is any obstruction
obstruction = AIGetObstruction(player);
if (obstruction == null) {
return false;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:370
//--------------------------------------------------------------------------------------------------
void AIWaveClearObs (int player, wave w) {
unit obstruction = AIGetObstruction(player);
unit oldTarget = null;
int obsLife;
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/MeleeWaveAI.galaxy:425
// See if there is any obstruction
obstruction = AIGetObstruction(player);
if (obstruction == null) {
return false;