Table of Contents

Class UnitSpawn

Namespace
RisingV.Core.Util
Assembly
RisingV.Core.dll
public static class UnitSpawn
Inheritance
UnitSpawn
Inherited Members

Methods

DecodeLifetime(float, out int, out int)

public static bool DecodeLifetime(float lifetime, out int level, out int faction)

Parameters

lifetime float
level int
faction int

Returns

bool

EncodeLifetime(int, int, int)

public static float EncodeLifetime(int lifetime, int level, int faction)

Parameters

lifetime int
level int
faction int

Returns

float

Spawn(Unit, float3, int, float, float, float)

public static void Spawn(Unit type, float3 position, int count, float minRange, float maxRange, float lifetime)

Parameters

type Unit
position float3
count int
minRange float
maxRange float
lifetime float

SpawnCustom(out float, string, float3, float, float, float)

public static bool SpawnCustom(out float identifier, string name, float3 position, float minRange = 1, float maxRange = 2, float duration = -1)

Parameters

identifier float
name string
position float3
minRange float
maxRange float
duration float

Returns

bool