DayZ 1.24
Loading...
Searching...
No Matches
UndergroundStash.c
Go to the documentation of this file.
1class UndergroundStash extends ItemBase
2{
4
6 {
7 vector pos = GetPosition();
8 pos[1] = GetGame().SurfaceRoadY(pos[0], pos[2]);
9 pos[1] = pos[1] + 0.22;
10 SetPosition(pos);
11 }
12
14 {
16 if (GetInventory().GetCargo().GetItemCount() > 0)
17 item = ItemBase.Cast(GetInventory().GetCargo().GetItem(0));
18
19 return item;
20 }
21
22 override bool CanDisplayCargo()
23 {
24 return false;
25 }
26
27 override bool CanPutInCargo(EntityAI parent)
28 {
29 return false;
30 }
31
33 {
34 return false;
35 }
36
38 {
39 return false;
40 }
41
43 {
44 return false;
45 }
46
47 override bool CanPutIntoHands(EntityAI parent)
48 {
49 return false;
50 }
51
52 override bool IsInventoryVisible()
53 {
54 return false;
55 }
56}
EntityAI GetItem()
class JsonUndergroundAreaTriggerData GetPosition
override bool CanDisplayCargo()
void UndergroundStash()
void PlaceOnGround()
override bool CanReleaseCargo(EntityAI cargo)
override bool IsInventoryVisible()
override bool CanPutIntoHands(EntityAI parent)
override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
override bool CanPutInCargo(EntityAI parent)
override bool CanSaveItemInHands(EntityAI item_in_hands)
ItemBase GetStashedItem()
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition Effect.c:420