6446 {
6448 {
6449 bool is_AI =
g_Game.IsKindOf(object_name,
"DZ_LightAI");
6450 if (is_AI)
6451 {
6452 return SpawnAI(object_name, pos);
6453 }
6454 else
6455 {
6456 InventoryLocation inv_loc = new InventoryLocation;
6457 vector mtx[4];
6458 Math3D.MatrixIdentity4(mtx);
6459 mtx[3] = pos;
6461
6463 #ifdef DEVELOPER
6464 if (
g_Game.IsKindOf(object_name,
"Boat"))
6466 #endif
6467
6469 }
6470 }
6471 return null;
6472 }
const int ECE_PLACE_ON_SURFACE
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()