Table of Contents

Class GoonManager

Namespace
S1API.Cartel
Assembly
S1API.dll

Manages the spawning and tracking of cartel goons. Provides access to the game's goon pool for spawning hostile NPCs.

public class GoonManager
Inheritance
GoonManager
Inherited Members
Extension Methods

Properties

AvailableGoonCount

The number of goons available to spawn from the pool.

public int AvailableGoonCount { get; }

Property Value

int

Methods

SpawnGoon(Vector3?)

Spawns a single goon at the specified position.

public CartelGoon? SpawnGoon(Vector3? position)

Parameters

position Vector3

The world position to spawn the goon at.

Returns

CartelGoon

The spawned goon, or null if no goons are available.

SpawnGoons(Vector3, int)

Spawns multiple goons at the specified position.

public List<CartelGoon> SpawnGoons(Vector3 position, int count)

Parameters

position Vector3

The world position to spawn the goons at.

count int

The number of goons to spawn.

Returns

List<CartelGoon>

A list of spawned goons. May contain fewer than requested if pool is depleted.

SpawnGoonsAtPositions(Vector3[])

Spawns goons at multiple positions, one goon per position.

public List<CartelGoon> SpawnGoonsAtPositions(Vector3[] positions)

Parameters

positions Vector3[]

The positions to spawn goons at.

Returns

List<CartelGoon>

A list of spawned goons with their positions set.