◆ ActionUnpackGift()
◆ ActionCondition()
33 {
34 return true;
35 }
◆ CreateConditionComponents()
◆ HasTarget()
28 {
29 return false;
30 }
◆ OnFinishProgressServer()
38 {
40
42
45
46 float dmg =
item.GetHealth01(
"",
"");
47
49 {
51 paper.SetHealth01(
"",
"",
dmg - 0.25 );
52 }
53
54 for(
int i =
cargo.GetItemCount() - 1;
i >= 0 ;
i--)
55 {
57
60
61 if(
GetGame().IsDedicatedServer())
63 else
65 }
66
68 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
const int RF_DEFAULT
Definition CentralEconomy.c:65
represents base for cargo storage for entities
Definition Cargo.c:7
script counterpart to engine's class Inventory
Definition Inventory.c:79
static bool SetGroundPosByOwner(EntityAI owner, notnull EntityAI item, out InventoryLocation ground)
Definition Inventory.c:1255
InventoryLocation.
Definition InventoryLocation.c:29
Definition InventoryItem.c:731
Definition ObjectTyped.c:2
proto native CGame GetGame()
Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), RF_DEFAULT и GameInventory::SetGroundPosByOwner().
Объявления и описания членов класса находятся в файле:
- D:/Ishodniki/scripts/4_World/Classes/UserActionsComponent/Actions/Continuous/ActionUnpackGift.c