Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
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] =
g_Game
.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
}
59
60
class
UndergroundStashSnow
extends
UndergroundStash
61
{
62
}
EntityAI
Definition
inventoryitem.c:2
ItemBase
Definition
inventoryitem.c:742
ItemBase::IsInventoryVisible
override bool IsInventoryVisible()
Definition
undergroundstash.c:54
ItemBase::CanDisplayCargo
override bool CanDisplayCargo()
Definition
undergroundstash.c:24
ItemBase::GetStashedItem
ItemBase GetStashedItem()
Definition
undergroundstash.c:13
ItemBase::UndergroundStash
void UndergroundStash()
Definition
undergroundstash.c:3
ItemBase::CanSaveItemInHands
override bool CanSaveItemInHands(EntityAI item_in_hands)
Definition
undergroundstash.c:44
ItemBase::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
undergroundstash.c:29
ItemBase::PlaceOnGround
void PlaceOnGround()
Definition
undergroundstash.c:5
ItemBase::CanReleaseCargo
override bool CanReleaseCargo(EntityAI cargo)
Definition
undergroundstash.c:34
ItemBase::CanPutIntoHands
override bool CanPutIntoHands(EntityAI parent)
Definition
undergroundstash.c:49
ItemBase::CanReceiveItemIntoHands
override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
Definition
undergroundstash.c:39
vector
Definition
enconvert.c:119
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
SetPosition
proto native void SetPosition(vector position)
Set the world position of the Effect.
Definition
effect.c:463
GetPosition
vector GetPosition()
Get the world position of the Effect.
Definition
effect.c:473
GetItem
EntityAI GetItem()
Definition
radialquickbarmenu.c:37
Games
Dayz
scripts
4_world
entities
undergroundstash.c
Generated by
1.17.0