Table of Contents

Class SpotTargetRequested

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

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

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; set; }

Property Value

string

Remarks

Can be changed.

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