803 {
804 super.OnPlacementComplete(player, position, orientation);
805
807 {
808 vector rotation_matrix[3];
809 float direction[4];
810 Math3D.YawPitchRollMatrix(orientation, rotation_matrix);
811 Math3D.MatrixToQuat(rotation_matrix, direction);
812 InventoryLocation source = new InventoryLocation;
813 InventoryLocation destination = new InventoryLocation;
814
815 if (GetInventory().GetCurrentInventoryLocation(source))
816 {
817 destination.
SetGroundEx(
this, position, direction);
819 {
820 player.ServerTakeToDst(source, destination);
822 }
823 else
824 {
825 PlayerBase.Cast(player).GetDayZPlayerInventory().RedirectToHandEvent(
InventoryMode.LOCAL, source, destination);
827 }
828 }
829
833 }
834 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
override ScriptCallQueue GetCallQueue(int call_category)
proto native void SetGroundEx(EntityAI e, vector pos, float dir[4])
sets current inventory location type to Ground with transformation mat
void InitCatchingComponent()
void SetupTrapPlayer(PlayerBase player, bool set_position=true)
void UpdateTrapEnviroMask()
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()