Class GoonManager
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
Methods
SpawnGoon(Vector3?)
Spawns a single goon at the specified position.
public CartelGoon? SpawnGoon(Vector3? position)
Parameters
positionVector3The 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
positionVector3The world position to spawn the goons at.
countintThe 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
positionsVector3[]The positions to spawn goons at.
Returns
- List<CartelGoon>
A list of spawned goons with their positions set.