Table of Contents

Class PlaceBarricadeRequested

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

Event listener args which handles SDG.Unturned.BarricadeManager.onDeployBarricadeRequested.

[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_world" })]
public class PlaceBarricadeRequested : CancellableEvent, IPlaceBuildableRequestedEvent, ICancellable
Inheritance
PlaceBarricadeRequested
Implements
Inherited Members

Properties

Asset

Asset of the barricade being placed.

public ItemBarricadeAsset Asset { get; }

Property Value

ItemBarricadeAsset

Barricade

Barricade instantiation data.

public required Barricade Barricade { get; init; }

Property Value

Barricade

GroupOwner

The group that owns the barricade's Steam ID, or Steamworks.CSteamID.Nil.

public required CSteamID GroupOwner { get; set; }

Property Value

CSteamID

Remarks

This can be changed.

HitTarget

Barricade place target (where the player was looking). This could be a vehicle in which case the barricade will be planted.

public required Transform? HitTarget { get; init; }

Property Value

Transform

Remarks

If this is a vehicle, it will be stored in TargetVehicle.

IsCancelled

If this execution has been cancelled.

public override bool IsCancelled { get; }

Property Value

bool

IsOnVehicle

If this barricade is being placed on a vehicle.

public bool IsOnVehicle { get; }

Property Value

bool

OriginalPlacer

The player that initially tried to place the barricade.

public required WarfarePlayer OriginalPlacer { get; init; }

Property Value

WarfarePlayer

Owner

The player that owns the barricade's Steam ID, or Steamworks.CSteamID.Nil.

public required CSteamID Owner { get; set; }

Property Value

CSteamID

Remarks

This can be changed.

Position

The exact position of the barricade.

public required Vector3 Position { get; set; }

Property Value

Vector3

Remarks

This can be changed.

Exceptions

ArgumentException

Position is not in a region when not planted.

Region

The region the barricade will be placed in.

public required BarricadeRegion Region { get; init; }

Property Value

BarricadeRegion

RegionPosition

Coordinate of the barricade region in SDG.Unturned.BarricadeManager.regions.

public required RegionCoord RegionPosition { get; init; }

Property Value

RegionCoord

Rotation

The exact rotation of the barricade.

public required Quaternion Rotation { get; set; }

Property Value

Quaternion

Remarks

This can be changed.

TargetVehicle

The vehicle the player was placing the barricade on.

public required InteractableVehicle? TargetVehicle { get; init; }

Property Value

InteractableVehicle

VehicleRegionIndex

The index of the vehicle region in SDG.Unturned.BarricadeManager.vehicleRegions. MaxValue if the barricade is not planted.

public required ushort VehicleRegionIndex { get; init; }

Property Value

ushort

Remarks

Also known as 'plant'.