Table of Contents

Class TargetSpotted

Namespace
Uncreated.Warfare.Events.Models.Squads
Assembly
Uncreated.Warfare.dll

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

WarfarePlayer

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

ISpotter

Target

The object that was spotted.

public required SpottableObjectComponent Target { get; init; }

Property Value

SpottableObjectComponent

TargetName

Friendly name of the Target.

public required string TargetName { get; init; }

Property Value

string

TargetTeam

The team that Target belongs to.

public required Team TargetTeam { get; init; }

Property Value

Team

Team

The team that spotted Target.

public required Team Team { get; init; }

Property Value

Team