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

◆ SpawnEntityOnGroundPos()

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

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 2153

2154 {
2155 InventoryLocation il = new InventoryLocation();
2156 vector mat[4];
2157 Math3D.MatrixIdentity4(mat);
2158 mat[3] = pos;
2159 il.SetGround(NULL, mat);
2160 return SpawnEntity(object_name, il,ECE_PLACE_ON_SURFACE,RF_DEFAULT);
2161 }
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().