Table of Contents

Class SpawnService

Namespace
VAMP.Services
Assembly
VAMP.dll

Provides methods for spawning units in the game world.

public static class SpawnService
Inheritance
SpawnService
Inherited Members

Methods

SpawnUnitWithCallback(PrefabGUID, float3, float, Action<Entity>)

Spawns a unit at the specified position and executes a callback action after a duration.

public static void SpawnUnitWithCallback(PrefabGUID unit, float3 position, float duration, Action<Entity> postActions)

Parameters

unit PrefabGUID

The PrefabGUID of the unit to spawn.

position float3

The position in 3D space where the unit will be spawned.

duration float

The duration in seconds before the callback is executed.

postActions Action<Entity>

The callback action to execute after the duration. Takes the spawned Entity as a parameter.