# Beacon Get Target Point
Flags —
Native|Function
Gets the target point of the specified beacon.
# Arguments
int— Playerint<preset::AIBeaconType> — Beacon
Returns — point
native point PlayerBeaconGetTargetPoint(
int inPlayer,
int inBeacon,
);
# Related
Category: AI Advanced / Beacons / Functions
- Beacon Is Auto Cast —
bool— PlayerBeaconIsAutoCast - Beacon Is From User —
bool— PlayerBeaconIsFromUser - Beacon Is Set —
bool— PlayerBeaconIsSet - Beacon Get Target Point —
point— PlayerBeaconGetTargetPoint - Beacon Get Target Unit —
unit— PlayerBeaconGetTargetUnit - Beacon Get Num Allies —
int— PlayerBeaconGetNumAllies - Beacon Get Ally PlayerId —
int— PlayerBeaconGetAllyPlayerId - Beacon Num Minerals Requested —
int— PlayerBeaconRequestedMinerals - Beacon Num Vespene Requested —
int— PlayerBeaconRequestedVespene
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1068
needsNearbyAttackers = true;
if (PlayerBeaconIsSet(player, c_beaconDetect)) {
if (loc == PlayerBeaconGetTargetPoint(player, c_beaconDetect)) {
needsNearbyAttackers = false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1048
needsNearbyAttackers = true;
if (PlayerBeaconIsSet(player, c_beaconDetect)) {
if (loc == PlayerBeaconGetTargetPoint(player, c_beaconDetect)) {
needsNearbyAttackers = false;
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAIWar3.galaxy:324
needsNearbyAttackers = true;
if (PlayerBeaconIsSet(player, c_beaconDetect)) {
if (loc == PlayerBeaconGetTargetPoint(player, c_beaconDetect)) {
needsNearbyAttackers = false;
}