Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actiontoggleplaceobjectdigging.c
Go to the documentation of this file.
1// Toggle object class for items which are able to dig
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}
class ActionTargets ActionTarget
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
static bool GetDisableColdAreaPlacementCheck()
DayZGame g_Game
Definition dayzgame.c:3942