DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
OnSelected()
[2/2]
override void RecipeBase::OnSelected
(
ItemBase
item1
,
ItemBase
item2
,
PlayerBase
player
)
inline
private
См. определение в файле
LoadMagazine.c
строка
59
60
{
61
/*if( GetGame().IsServer() && GetGame().IsMultiplayer() ) return;
62
ItemBase ammo;
63
ActionTarget actionTarget;
64
if( item1.IsKindOf("Ammunition_Base") )
65
{
66
ammo = item1;
67
ActionManagerClient mngr = player.GetActionManager();
68
69
actionTarget = new ActionTarget(item1, -1, vector.Zero, -1);
70
mngr.InjectContinuousAction(AT_LOAD_MAGAZINE,actionTarget,player.GetItemInHands());
71
}
72
else
73
{
74
ammo = item2;
75
actionTarget = new ActionTarget(item2, -1, vector.Zero, -1);
76
mngr.InjectContinuousAction(AT_LOAD_MAGAZINE,actionTarget,player.GetItemInHands());
77
}
78
*/
79
}
RecipeBase
Создано системой
1.13.2