21 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionCreated",
e.m_Player.ToString());
24 e.m_Player.OnItemInHandsChanged();
34 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionTake",
e.m_Player.ToString());
38 e.m_Player.OnItemInHandsChanged();
48 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionDrop",
e.m_Player.ToString());
52 e.m_Player.OnItemInHandsChanged();
62 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionThrow",
e.m_Player.ToString());
75 Error(
"[hndfsm] HandActionThrow - src entity null!");
78 player.OnItemInHandsChanged();
88 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionMoveTo",
e.m_Player.ToString());
91 HandEventMoveTo
es = HandEventMoveTo.Cast(
e);
95 e.m_Player.OnItemInHandsChanged();
98 Error(
"[hndfsm] HandActionMoveTo - this is no HandEventMoveTo");
108 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionDestroy",
e.m_Player.ToString());
111 GetGame().ObjectDelete(
e.GetSrcEntity());
112 e.m_Player.OnItemInHandsChanged();
122 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionDestroyed",
e.m_Player.ToString());
124 e.m_Player.OnItemInHandsChanged();
134 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionDestroyAndReplaceWithNew",
e.m_Player.ToString());
145 edr.m_Lambda.Execute();
149 Error(
"[hndfsm] HandActionDestroyAndReplaceWithNew - not a HandEventDestroyAndReplaceWithNew event");
152 Error(
"[hndfsm] HandActionDestroyAndReplaceWithNew - itemInHands has no InventoryLocation");
170 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionReplaced",
e.m_Player.ToString());
174 player.OnItemInHandsChanged();
184 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionSwap",
e.m_Player.ToString());
190 e.m_Player.OnItemInHandsChanged();
193 Error(
"[hndfsm] HandActionSwap - this is no HandEventSwap");
203 Debug.
InventoryHFSMLog(
"Action - STS = " +
e.m_Player.GetSimulationTimeStamp(),
e.ToString(),
"n/a",
"HandActionForceSwap",
e.m_Player.ToString());
205 HandEventForceSwap
es = HandEventForceSwap.Cast(
e);
209 e.m_Player.OnItemInHandsChanged();
212 Error(
"[hndfsm] HandActionForceSwap - this is no HandEventForceSwap");
static void InventoryHFSMLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
script counterpart to engine's class Inventory
static proto native bool LocationSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
swaps two entities
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...
override void Action(HandEventBase e)
void Action(HandEventBase e)
override void Action(HandEventBase e)
Abstracted event, not to be used, only inherited.
static bool IsInventoryHFSMLogEnable()
DayZPlayerInstanceType
defined in C++
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.