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

◆ SpawnLoot()

proto native void SpawnLoot ( string sEvName,
vector vPos,
float fAngle,
int iCount = 1,
float fRange = 1 )
private

Spawn an item through CE.

Заметки
DEVELOPER/DIAG ONLY
Аргументы
sEvNamestring The DE 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
Аргументы
iCountint The amount of items
fRangefloat Circle radius
Заметки
When iCount is larger than 1, changing this will make it so that they are spawned in a circle around vPos
GetCEApi().SpawnLoot("Deagle", Vector(5, 10, 5), 0, 9, 1);
proto native CEApi GetCEApi()
Get the CE API.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.