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

◆ SetAction() [1/2]

void InventoryActionHandler::SetAction ( ActionBase action,
ActionTarget target,
ItemBase main_item )
inlineprivate

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

43 {
44 ActionManagerClient mngr;
45 Class.CastTo(mngr, m_player.GetActionManager());
46
47 m_action = action;
48 m_target = target;
49 m_mainItem = main_item;
50
51 ItemBase itemInHand = m_player.GetItemInHands();
52 m_useItemInHands = main_item == itemInHand;
53
54 m_actionStartPos = m_player.GetPosition();
55 m_isActive = true;
56
57 //mngr.InjectAction( action, target, main_item );
58 mngr.ForceTarget(m_target.GetObject());
59
61 }
class GP5GasMask extends MaskBase ItemBase
void ForceTarget(Object targetObject)
Определения ActionManagerClient.c:460
proto native Mission GetMission()
bool m_useItemInHands
Определения InventoryActionHandler.c:7
PlayerBase m_player
Определения InventoryActionHandler.c:9
vector m_actionStartPos
Определения InventoryActionHandler.c:12
ItemBase m_mainItem
Определения InventoryActionHandler.c:6
ActionTarget m_target
Определения InventoryActionHandler.c:5
ActionBase m_action
Определения InventoryActionHandler.c:4
void HideInventory()
Определения gameplay.c:809
proto native CGame GetGame()

Перекрестные ссылки ActionTarget, Class::CastTo(), ActionManagerClient::ForceTarget(), GetGame(), CGame::GetMission(), Mission::HideInventory(), m_action, m_actionStartPos, m_isActive, m_mainItem, m_player, m_target и m_useItemInHands.