Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionattachseeds.c
Go to the documentation of this file.
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()
Definition
actionattach.c:9
ActionTarget
class ActionTargets ActionTarget
ActionAttachSeeds
Definition
actionattachseeds.c:2
ActionAttachSeeds::ActionCondition
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Definition
actionattachseeds.c:3
EntityAI
Definition
inventoryitem.c:2
GardenBase
Definition
gardenplot.c:2
ItemBase
Definition
inventoryitem.c:742
PlayerBase
Definition
playerbaseclient.c:2
Games
Dayz
scripts
4_world
classes
useractionscomponent
actions
singleuse
actionattachseeds.c
Generated by
1.17.0