DayZ 1.24
Loading...
Searching...
No Matches
MyBotTrigger Class Reference
Inheritance diagram for MyBotTrigger:
[legend]
Collaboration diagram for MyBotTrigger:
[legend]

Private Member Functions

void MyBotTrigger (PlayerBase p)
 
override bool CheckTrigger ()
 

Private Attributes

PlayerBase m_Owner
 

Detailed Description

Definition at line 8 of file Bot.c.

Constructor & Destructor Documentation

◆ MyBotTrigger()

void MyBotTrigger::MyBotTrigger ( PlayerBase p)
inlineprivate

Definition at line 11 of file Bot.c.

11{ m_Owner = p; }
PlayerBase m_Owner
Definition Bot.c:10

References m_Owner.

Member Function Documentation

◆ CheckTrigger()

override bool MyBotTrigger::CheckTrigger ( )
inlineprivate

Definition at line 12 of file Bot.c.

12{ return null != m_Owner.GetInventory().FindAttachment(InventorySlots.GetSlotIdFromString("Headgear")); }
provides access to slot configuration
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id

References InventorySlots::GetSlotIdFromString(), and m_Owner.

Member Data Documentation

◆ m_Owner

PlayerBase MyBotTrigger::m_Owner
private

Definition at line 10 of file Bot.c.

Referenced by CheckTrigger(), and MyBotTrigger().


The documentation for this class was generated from the following file: