Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RippleFireQuantityAction.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
4 override bool CanBeShownScript(IEntity user)
5 {
6 if (fireModeManager && fireModeManager.GetFireMode() == EWeaponGroupFireMode.RIPPLE)
7 return true;
8
9 return false;
10 }
11
12 //------------------------------------------------------------------------------------------------
14 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
15 {
16 super.PerformAction(pOwnerEntity, pUserEntity);
17
19 fireModeManager.NextRippleCount();
20 }
21
22 //------------------------------------------------------------------------------------------------
23 override bool GetActionNameScript(out string outName)
24 {
25 if (!fireModeManager)
26 return false;
27
28 UIInfo info = GetUIInfo();
29 if (!info)
30 return false;
31
32 outName = info.GetName() + " " + fireModeManager.GetRippleQuantity();
33
34 return true;
35 }
36}
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
By default toggle the current state of the interaction.
SCR_FireModeManagerComponent fireModeManager
UIInfo - allows to define UI elements.
Definition UIInfo.c:14
@ PerformAction
EWeaponGroupFireMode