DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SpawnGroup()

proto native Entity SpawnGroup ( string sGroupName,
vector vPos,
float fAngle = -1 )
private

Force spawn specific prototype group + loot at position.

Заметки
DEVELOPER/DIAG ONLY
This can also spawn in other CE & DE related objects, but is best used exclusively for testing prototype groups
Аргументы
sGroupNamestring The group name to spawn
vPosvector The position to spawn the Entity at
fAnglefloat Angle to spawn the Entity with in degrees [0, 360]
Заметки
When a negative value, will pick a random one
Возвращает
Entity The spawned Entity or null if unsuccessful
GetCEApi().SpawnGroup("Land_Shed_M1", Vector(5, 10, 5));
proto native CEApi GetCEApi()
Get the CE API.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.