Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
undergroundstash.c
Go to the documentation of this file.
1
class
UndergroundStash
extends
ItemBase
2
{
3
void
UndergroundStash() {}
4
5
void
PlaceOnGround()
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
13
ItemBase
GetStashedItem()
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
}
ItemBase
Definition:
inventoryitem.c:730
GetGame
proto native CGame GetGame()
IsInventoryVisible
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
Definition:
advancedcommunication.c:135
GetPosition
class JsonUndergroundAreaTriggerData GetPosition
Definition:
undergroundarealoader.c:9
CanPutIntoHands
override bool CanPutIntoHands(EntityAI parent)
Definition:
explosivesbase.c:257
vector
Definition:
enconvert.c:105
CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition:
explosivesbase.c:247
GetItem
EntityAI GetItem()
Definition:
radialquickbarmenu.c:37
SetPosition
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition:
effect.c:436
CanDisplayCargo
override bool CanDisplayCargo()
Definition:
itembase.c:3998
EntityAI
Definition:
building.c:5
DAYZ
scripts_v1.24.157551
scripts
world
entities
undergroundstash.c
Generated by
1.8.17