6223 {
6225 {
6227 if (is_AI)
6228 {
6229 return SpawnAI(object_name, pos);
6230 }
6231 else
6232 {
6233 InventoryLocation inv_loc = new InventoryLocation;
6234 vector mtx[4];
6235 Math3D.MatrixIdentity4(mtx);
6236 mtx[3] = pos;
6238
6240 #ifdef DEVELOPER
6241 if (
g_Game.IsKindOf(object_name,
"Boat"))
6243 #endif
6244
6246 }
6247 }
6248 return null;
6249 }
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()