DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
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 {
15 ItemBase item;
16 if (GetInventory().GetCargo().GetItemCount() > 0)
17 {
18 item = ItemBase.Cast(GetInventory().GetCargo().GetItem(0));
19 }
20
21 return item;
22 }
23
24 override bool CanDisplayCargo()
25 {
26 return false;
27 }
28
29 override bool CanPutInCargo(EntityAI parent)
30 {
31 return false;
32 }
33
34 override bool CanReleaseCargo(EntityAI cargo)
35 {
36 return false;
37 }
38
39 override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
40 {
41 return false;
42 }
43
44 override bool CanSaveItemInHands(EntityAI item_in_hands)
45 {
46 return false;
47 }
48
49 override bool CanPutIntoHands(EntityAI parent)
50 {
51 return false;
52 }
53
54 override bool IsInventoryVisible()
55 {
56 return false;
57 }
58}
EntityAI GetItem()
class JsonUndergroundAreaTriggerData GetPosition
proto native float SurfaceRoadY(float x, float z)
override bool IsInventoryVisible()
override bool CanDisplayCargo()
ItemBase GetStashedItem()
void UndergroundStash()
override bool CanSaveItemInHands(EntityAI item_in_hands)
override bool CanPutInCargo(EntityAI parent)
void PlaceOnGround()
override bool CanReleaseCargo(EntityAI cargo)
override bool CanPutIntoHands(EntityAI parent)
override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition Effect.c:427