TargetPlayer

Enumeration that represents the targeting mode in various functions of this API. Usually passed along with the ID of the target player, and a Vector3 as a point of reference.

Values

Initiator [0]Targets the target player
Everyone [1]Targets everyone
Others [2]Targets everyone but the target player
Random [3]Targets a random player
Closest [4]Targets the closest player to the point of reference
Furthest [5]Targets the furthest player to the point of reference
AllTeamMembers [6]Targets all the team members of the target player, target player included
OtherTeamMembers [7]Targets all the team members of the target player, target player excluded
OtherTeams [8]Targets all the other teams, which target player is not part of

Examples

local initiator = TargetPlayer.Initiator;

local others = TargetPlayer.Others;

local everyone = TargetPlayer.Everyone;