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

◆ SpawnEntity()

proto native void SpawnEntity ( string sClassName,
vector vPos,
float fRange,
int iCount )
private

Spawn an entity through CE.

Заметки
DEVELOPER/DIAG ONLY
Is similar to SpawnLoot, but works better on Animal/Infected/Vehicle
Аргументы
sClassNamestring The entity to spawn
vPosvector The position to spawn the Entity at
fRangefloat Circle radius
Заметки
When iCount is larger than 1, changing this will make it so that they are spawned in a circle around vPos
Аргументы
iCountint The amount of items
GetCEApi().SpawnEntity("Deagle", Vector(5, 10, 5), 1, 9);
proto native CEApi GetCEApi()
Get the CE API.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Используется в DayZPlayer::CommandHandlerDebug(), HandleStoreCartridge(), SelectStoreCartridge(), PluginBase::SpawnEntityInInventory(), PluginBase::SpawnEntityInPlayerInventory(), Entity::SpawnEntityOnGround() и Entity::SpawnEntityOnGroundPos().