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

◆ SpawnBuilding()

proto native void SpawnBuilding ( vector vPos,
bool bShowCylinders = false,
float fDefaultDistance = 20 )
private

Spawn all entities with building category through CE.

Заметки
DEVELOPER/DIAG ONLY
Will print additional logs to RPT
Аргументы
vPosvector The position to spawn the Entities at
Заметки
This will be the starting position, the items will be split into segments by CE BBox size (smallest to largest)
Аргументы
bShowCylindersbool Whether to draw the CE BBox with debug shapes
Заметки
Red: Invalid BBox; Yellow: Not in DB; Green: All ok
These will most likely just always be red
Аргументы
fDefaultDistancefloat The default distance to use when the entity does not have a CE BBox
Заметки
This means that all the ones with invalid CE BBoxes will be piled up at the starting position when this is 0
GetCEApi().SpawnBuilding(Vector(5, 10, 5), true);
proto native CEApi GetCEApi()
Get the CE API.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.