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

◆ EEItemLocationChanged()

override void BaitBase::EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate

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

21 {
22 super.EEItemLocationChanged(oldLoc,newLoc);
23
24 string hookType = ConfigGetString("hookType");
25 if (GetGame().IsDedicatedServer() && hookType != string.Empty)
26 {
27 DeleteSafe();
28 vector spawnPos;
29 if (newLoc.GetType() == InventoryLocationType.GROUND)
30 spawnPos = newLoc.GetPos();
31 else
32 spawnPos = newLoc.GetParent().GetHierarchyRoot().GetPosition();
33
34 EntityAI newItem = EntityAI.Cast(GetGame().CreateObjectEx(hookType,spawnPos,ECE_PLACE_ON_SURFACE,RF_DEFAULT));
35 EntityAI worm = newItem.GetInventory().CreateAttachment("Worm");
36 MiscGameplayFunctions.TransferItemProperties(this,newItem);
37 MiscGameplayFunctions.TransferItemProperties(this,worm);
38 }
39 }
class LogManager EntityAI
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
const int RF_DEFAULT
Определения CentralEconomy.c:65
Empty
Определения Hand_States.c:14
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native CGame GetGame()

Перекрестные ссылки ECE_PLACE_ON_SURFACE, Empty, GetGame() и RF_DEFAULT.