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

◆ OnEntry()

override void OnEntry ( BotEventBase e)

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

34 {
35 m_Entity = m_Owner.GetInventory().FindAttachment(InventorySlots.GetSlotIdFromString("Legs"));
36 botDebugPrint("[bot] + " + m_Owner + "BotTestSpamUserActions_GetEntityFromSlot item=" + m_Entity);
37
39 /*if (!m_Entity.GetInventory().GetCurrentInventoryLocation(m_Src))
40 {
41 Error("NI!");
42 }*/
43
44 if (!GetGame().IsDedicatedServer())
45 {
46 m_Entity = m_Owner.GetInventory().FindAttachment(InventorySlots.GetSlotIdFromString("Legs"));
47 m_Owner.PredictiveDropEntity(m_Entity);
48 }
49
50 super.OnEntry(e);
51 }
EntityAI m_Entity
Определения ActionDebug.c:11
void botDebugPrint(string s)
Определения Bot.c:122
ref InventoryLocation m_Src
Определения Hand_Events.c:43
enum ProcessDirectDamageFlags m_Owner
static bool SetGroundPosByOwner(EntityAI owner, notnull EntityAI item, out InventoryLocation ground)
Определения Inventory.c:1255
script counterpart to engine's class Inventory
Определения Inventory.c:79
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
Определения InventorySlots.c:6
proto native CGame GetGame()

Перекрестные ссылки botDebugPrint(), GetGame(), InventorySlots::GetSlotIdFromString(), m_Entity, m_Owner, m_Src и GameInventory::SetGroundPosByOwner().