We don't care if a valid transform couldn't be found, we just want to preferably use it instead of placing on the player
255 {
258
264 if (mag.GetInventory().GetCurrentInventoryLocation(il_mag_curr))
265 {
267 }
268 else
269 {
270 Error(
"DayZPlayerUtils::HandleDropMagazine - cannot get current inv location of mag=" + mag);
271 return false;
272 }
273 }
static proto native bool LocationSyncMoveEntity(notnull InventoryLocation src_loc, notnull InventoryLocation dst_loc)
synchronously removes item from current inventory location and adds it to destination no anims involv...
static proto native bool PrepareDropEntityPos(EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1)
Finds a transformation for the item to be dropped to If the initial transforation overlaps with anoth...
script counterpart to engine's class Inventory
proto native void SetGround(EntityAI e, vector mat[4])
sets current inventory location type to Ground with transformation mat
void Error(string err)
Messagebox with error message.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.