Dayz Explorer
1.28.160049
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
}
ActionAttachSeeds
Definition
actionattachseeds.c:2
EntityAI
Definition
building.c:6
GardenBase
Definition
gardenplot.c:2
ItemBase
Definition
inventoryitem.c:731
PlayerBase
Definition
playerbaseclient.c:2
Daten
4_world
classes
useractionscomponent
actions
singleuse
actionattachseeds.c
Generated by
1.12.0