Class SpotTargetRequested
Invoked when an object starts getting spotted.
[EventModel(EventSynchronizationContext.Global)]
public class SpotTargetRequested : CancellableEvent, ICancellable
- Inheritance
-
SpotTargetRequested
- Implements
- 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; set; }
Property Value
Remarks
Can be changed.
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; }