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

◆ SpawnEntityOnGroundPos()

EntityAI Entity::SpawnEntityOnGroundPos ( string object_name,
vector pos )
inlineprotected

См. определение в файле EntityAI.c строка 2109

2110 {
2111 InventoryLocation il = new InventoryLocation();
2112 vector mat[4];
2113 Math3D.MatrixIdentity4(mat);
2114 mat[3] = pos;
2115 il.SetGround(NULL, mat);
2116 return SpawnEntity(object_name, il,ECE_PLACE_ON_SURFACE,RF_DEFAULT);
2117 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
const int RF_DEFAULT
Определения CentralEconomy.c:65
proto native void SetGround(EntityAI e, vector mat[4])
sets current inventory location type to Ground with transformation mat
EntityAI SpawnEntity(string object_name, notnull InventoryLocation inv_loc, int iSetupFlags, int iRotation)
Определения gameplay.c:1526

Перекрестные ссылки ECE_PLACE_ON_SURFACE, EntityAI(), Math3D::MatrixIdentity4(), RF_DEFAULT, InventoryLocation::SetGround() и SpawnEntity().

Используется в SpawnInInventoryOrGroundPos().