6215 {
6217 {
6219 if (is_AI)
6220 {
6221 return SpawnAI(object_name, pos);
6222 }
6223 else
6224 {
6225 InventoryLocation inv_loc = new InventoryLocation;
6226 vector mtx[4];
6227 Math3D.MatrixIdentity4(mtx);
6228 mtx[3] = pos;
6230
6232 #ifdef DEVELOPER
6233 if (
g_Game.IsKindOf(object_name,
"Boat"))
6235 #endif
6236
6238 }
6239 }
6240 return null;
6241 }
const int ECE_PLACE_ON_SURFACE
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
proto native vector GetPos()
returns position of item in world if type is Ground
proto native void SetGround(EntityAI e, vector mat[4])
sets current inventory location type to Ground with transformation mat
EntityAI SpawnAI(string object_name, vector pos)
DayZPlayerInstanceType
defined in C++
proto native DayZPlayerInstanceType GetInstanceType()
proto native CGame GetGame()