Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ChangeFuzeTimerUserAction.c
Go to the documentation of this file.
2{
3 [Attribute("30", UIWidgets.Slider, "Value for the timer in seconds", "1 100 1")]
4 protected float m_fNewTimer;
5
6 protected TimerTriggerComponent m_TimerTriggerComp;
7
8 //------------------------------------------------------------------------------------------------
9 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
10 {
11 m_TimerTriggerComp = TimerTriggerComponent.Cast(pOwnerEntity.FindComponent(TimerTriggerComponent));
12 }
13
14 //------------------------------------------------------------------------------------------------
15 override bool CanBeShownScript(IEntity user)
16 {
18 return false;
19
20 return true;
21 }
22
23 //------------------------------------------------------------------------------------------------
24 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
25 {
27 }
28
29 //------------------------------------------------------------------------------------------------
30 override bool GetActionNameScript(out string outName)
31 {
32 outName = string.Format("Set timer to %1 seconds (Current: %2 seconds)", m_fNewTimer, m_TimerTriggerComp.GetTimer());
33 return true;
34 }
35
36 //------------------------------------------------------------------------------------------------
38 {
39 return false;
40 }
41
42 //------------------------------------------------------------------------------------------------
43 override bool CanBroadcastScript()
44 {
45 return true;
46 }
47}
proto external Managed FindComponent(typename typeName)
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
override bool CanBeShownScript(IEntity user)
override bool GetActionNameScript(out string outName)
SCR_FieldOfViewSettings Attribute