# 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
- 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
— None found —