DayZ 1.29
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
60 g_Game.GetMission().HideInventory();
61 }
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
void ForceTarget(Object targetObject)
Определения ActionManagerClient.c:460
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

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