DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ActionAttachSeeds.c
См. документацию.
1
class
ActionAttachSeeds
:
ActionAttach
2
{
3
override
bool
ActionCondition
(
PlayerBase
player,
ActionTarget
target,
ItemBase
item)
4
{
5
EntityAI
targetEntity =
EntityAI
.Cast(target.GetObject());
6
if
(targetEntity && !
GardenBase
.Cast(targetEntity) && item)
7
{
8
return
targetEntity.GetInventory() && targetEntity.GetInventory().CanAddAttachment(item) && !targetEntity.CanUseConstruction());
9
}
10
11
return
false
;
12
}
13
}
ActionAttach
AttachActionData ActionData ActionAttach()
Определения
ActionAttach.c:9
ActionTarget
class ActionTargets ActionTarget
ActionAttachSeeds::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Определения
ActionAttachSeeds.c:3
ActionAttachSeeds
Определения
ActionAttachSeeds.c:2
EntityAI
Определения
Building.c:6
GardenBase
Определения
GardenPlot.c:2
ItemBase
Определения
InventoryItem.c:731
PlayerBase
Определения
PlayerBaseClient.c:2
Ishodniki
scripts
4_World
Classes
UserActionsComponent
Actions
SingleUse
ActionAttachSeeds.c
Создано системой
1.13.2