3 protected const static string WEAPON_COMPONENT_PORT =
"WeaponComponent";
4 protected const static string MUZZLE_ID_PORT =
"MuzzleId";
6 static const string MAGAZINE_WELL_PORT =
"MagazineWell";
7 static const string MAGAZINE_WELL_TYPE_PORT =
"MagazineWellType";
10 override bool VisibleInPalette() {
return true;}
13 override ENodeResult EOnTaskSimulate(AIAgent owner,
float dt)
18 if (!GetVariableIn(WEAPON_COMPONENT_PORT, weaponComp))
19 return ENodeResult.FAIL;
20 if (!GetVariableIn(MUZZLE_ID_PORT, muzzleId))
21 return ENodeResult.FAIL;
24 return ENodeResult.FAIL;
26 array<BaseMuzzleComponent> muzzles = {};
27 weaponComp.GetMuzzlesList(muzzles);
29 if (muzzleId < 0 || muzzleId >= muzzles.Count())
30 return ENodeResult.FAIL;
35 return ENodeResult.FAIL;
39 return ENodeResult.FAIL;
41 typename magWellType = magWell.Type();
42 SetVariableOut(MAGAZINE_WELL_PORT, magWell);
43 SetVariableOut(MAGAZINE_WELL_TYPE_PORT, magWellType);
44 return ENodeResult.SUCCESS;
48 protected static ref TStringArray s_aVarsOut = { MAGAZINE_WELL_PORT, MAGAZINE_WELL_TYPE_PORT };
49 override TStringArray GetVariablesOut() {
return s_aVarsOut; }
51 protected static ref TStringArray s_aVarsIn = { WEAPON_COMPONENT_PORT, MUZZLE_ID_PORT };
52 override TStringArray GetVariablesIn() {
return s_aVarsIn; }
56 override string GetOnHoverDescription()
58 return "Returns magazine well and its type of a specific weapon muzzle";