DayZ 1.29
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(g_Game.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
DayZGame g_Game
Определения DayZGame.c:3942
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

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