Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actiontoggleplaceobjectdigging.c
Go to the documentation of this file.
1
// Toggle object class for items which are able to dig
2
class
ActionTogglePlaceObjectDigging
:
ActionTogglePlaceObject
3
{
4
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
5
{
6
if
(!
g_Game
.IsDedicatedServer())
7
{
8
if
(!
CfgGameplayHandler
.
GetDisableColdAreaPlacementCheck
() && player.GetInColdArea())
9
return
false
;
10
}
11
12
return
true
;
13
}
14
}
ActionTarget
class ActionTargets ActionTarget
ActionTogglePlaceObjectDigging
Definition
actiontoggleplaceobjectdigging.c:3
ActionTogglePlaceObjectDigging::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actiontoggleplaceobjectdigging.c:4
ActionTogglePlaceObject::ActionTogglePlaceObject
void ActionTogglePlaceObject()
Definition
actiontoggleplaceobject.c:3
CfgGameplayHandler
Definition
cfggameplayhandler.c:2
CfgGameplayHandler::GetDisableColdAreaPlacementCheck
static bool GetDisableColdAreaPlacementCheck()
Definition
cfggameplayhandler.c:342
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
singleuse
actiontoggleplaceobjectdigging.c
Generated by
1.17.0