Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
actiondropitemsimple.c
Go to the documentation of this file.
1class ActionDropItemSimple: ActionDropItem
2{
4
5 override bool IsInstant()
6 {
7 return true;
8 }
9
10 override bool MainItemAlwaysInHands()
11 {
12 return false;
13 }
14
15 override bool CanBeUsedOnBack()
16 {
17 return true;
18 }
19
20 override void Start(ActionData action_data)
21 {
22 super.Start(action_data);
23
24 #ifndef SERVER
25 ClearInventoryReservationEx(action_data);
26 PhysicalDropItem(action_data);
27 #endif
28 }
29
30 override void PhysicalDropItem(ActionData action_data)
31 {
32 action_data.m_Player.PredictiveDropEntity(action_data.m_MainItem);
33 }
34}
void Start()
Plays all elements this effects consists of.
Definition effect.c:157