Class TargetSpotted
Invoked when an object starts getting spotted.
[EventModel(EventSynchronizationContext.Pure)]
public class TargetSpotted
- Inheritance
-
TargetSpotted
- Inherited Members
Properties
Player
The player that spotted Target, if it was a player.
public required WarfarePlayer? Player { get; init; }
Property Value
Spotter
The object that spotted Target. This is usually a WarfarePlayer, in which case Player will be the same.
public required ISpotter Spotter { get; init; }
Property Value
Target
The object that was spotted.
public required SpottableObjectComponent Target { get; init; }
Property Value
TargetName
Friendly name of the Target.
public required string TargetName { get; init; }
Property Value
TargetTeam
The team that Target belongs to.
public required Team TargetTeam { get; init; }
Property Value
Team
The team that spotted Target.
public required Team Team { get; init; }