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

◆ SetupAction()

override bool ActionBuildShelter::SetupAction ( PlayerBase player,
ActionTarget target,
ItemBase item,
out ActionData action_data,
Param extra_data = NULL )
inlineprotected

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

132 {
133 if ( super.SetupAction( player, target, item, action_data, extra_data ) )
134 {
135 if ( !GetGame().IsDedicatedServer() )
136 {
137 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
138 BuildPartActionData.Cast(action_data).m_PartType = construction_action_data.GetBuildPartNoToolAtIndex(m_VariantID).GetPartName();
139 }
140 return true;
141 }
142
143 return false;
144 }
int m_VariantID
Определения ActionBase.c:68
ConstructionPart GetBuildPartNoToolAtIndex(int idx)
Определения ConstructionActionData.c:193
string GetPartName()
Определения ConstructionPart.c:30
proto native CGame GetGame()

Перекрестные ссылки ActionData, ActionTarget, ConstructionActionData::GetBuildPartNoToolAtIndex(), GetGame(), ConstructionPart::GetPartName() и ActionBase::m_VariantID.