# Beacon Get Target Unit
Flags —
Native
|Function
Gets the target unit of the specified beacon, if there is one.
# Arguments
int
— Playerint
[ preset::AIBeaconType ] — Beacon
Returns — unit
native unit PlayerBeaconGetTargetUnit(
int inPlayer,
int inBeacon,
);
# Related
Category: AI Advanced / Beacons / Functions
- [F] —
bool
— Beacon Is Auto Cast — ( PlayerBeaconIsAutoCast ) - [F] —
bool
— Beacon Is From User — ( PlayerBeaconIsFromUser ) - [F] —
bool
— Beacon Is Set — ( PlayerBeaconIsSet ) - [F] —
point
— Beacon Get Target Point — ( PlayerBeaconGetTargetPoint ) - [F] —
unit
— Beacon Get Target Unit — ( PlayerBeaconGetTargetUnit ) - [F] —
int
— Beacon Get Num Allies — ( PlayerBeaconGetNumAllies ) - [F] —
int
— Beacon Get Ally PlayerId — ( PlayerBeaconGetAllyPlayerId ) - [F] —
int
— Beacon Num Minerals Requested — ( PlayerBeaconRequestedMinerals ) - [F] —
int
— Beacon Num Vespene Requested — ( PlayerBeaconRequestedVespene )
# Examples
— None found —