DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateRope()

void ItemBase::CreateRope ( Rope rope)
inlineprotected

См. определение в файле KitBase.c строка 126

127 {
128 if (!rope)
129 return;
130
131 InventoryLocation targetLoc = rope.GetTargetLocation();
132 if (targetLoc && targetLoc.GetType() != InventoryLocationType.GROUND)
133 {
134 MiscGameplayFunctions.TransferItemProperties(this, rope);
135 return;
136 }
137
138 EntityAI newRope = EntityAI.Cast(GetGame().CreateObjectEx(rope.GetType(), GetPosition(), ECE_PLACE_ON_SURFACE));
139
140 if (newRope)
141 MiscGameplayFunctions.TransferItemProperties(this, newRope);
142
143 rope.Delete();
144 }
class LogManager EntityAI
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и InventoryLocation::GetType().