8 [
Attribute(
desc:
"If action should wait for player to use their scroll wheel in order to change value")]
12 [
Attribute(
desc:
"Determines if this action will start from the begining when max value is reached - or from the other side if Adjustment Step is below 0")]
16 [
Attribute(defvalue:
"SelectAction",
desc:
"Input action for increase")]
40 [
Attribute(
desc:
"Show this action only when a player is inside a vehicle")]
44 [
Attribute(
desc:
"Enable if only the Pilot/Driver should see this action. OnlyInVehicle needs to be true for this to work!")]
101 if (!character.IsInVehicle())
105 CompartmentAccessComponent compartmentAccess = character.GetCompartmentAccessComponent();
106 if (!compartmentAccess)
122 if (vehicle && vehicle.GetPilotCompartmentSlot() != slot)
205 value /=
Math.AbsFloat(value);
240 return GetCurrentValue();
247 return GetMinimumValue();
254 return GetMaximumValue();
267 vector contextTransform[4];
270 if (
float.AlmostEqual(lerp, 1))
279 else if (
float.AlmostEqual(lerp, 0))
330 reader.ReadFloat(targetValue);
348 return fProgress + timeSlice;
ArmaReforgerScripted GetGame()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external void SetSendActionDataFlag()
Used to ask to send action data again during continuous action.
proto external UserActionContext GetActiveContext()
Getter for m_pActiveContext.
proto external float GetActionDuration()
Returns the duration of this action in seconds.
proto external IEntity GetOwner()
Returns the parent entity of this action.
proto external Managed FindComponent(typename typeName)
override bool HasLocalEffectOnlyScript()
Is the script broadcast to the server?
float m_fTargetValue
Normalized current value.
override void PerformContinuousAction(IEntity pOwnerEntity, IEntity pUserEntity, float timeSlice)
bool m_bManualAdjustment
Flag for enabling adjustment with scroll wheel.
override void OnActionStart(IEntity pUserEntity)
bool IsManuallyAdjusted()
Used to tell if this action is meant to be adjustable with usage of the scroll wheel.
override bool CanBroadcastScript()
If HasLocalEffectOnly() is true this method tells if the server is supposed to broadcast this action ...
float SCR_GetMinimumValue()
Scripted version of the GetMinimumValue that can be overriden for custom handling.
bool OnLoadActionData(ScriptBitReader reader)
override void OnActionCanceled(IEntity pOwnerEntity, IEntity pUserEntity)
bool m_bIsAdjustedByPlayer
Interacted with by main entity. Allows reading input actions.
float m_fAdjustmentStep
Adjustment step of normalized value.
override float GetActionProgressScript(float fProgress, float timeSlice)
SoundComponent m_SoundComponent
Sound component on owner entity.
AudioHandle m_MovementAudioHandle
Movement sound AudioHandle.
override bool CanBeShownScript(IEntity user)
void HandleActionDecrease(float value)
string m_sActionStartSoundEvent
Action start sound event name.
override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
string m_sMovementStopSoundEvent
Movement stop sound event name.
string m_sActionDecrease
Name of action to control the input.
bool m_bOnlyInVehicle
Should action only be Visible when player is inside the vehicle.
bool m_bPilotOnly
Should the action only be visible for the Pilot/Driver.
float m_fLerpLast
Last lerp value.
string m_sMovementSoundEvent
Movement sound event name.
float SCR_GetCurrentValue()
Scripted version of the GetCurrentValue that can be overriden for custom handling.
bool OnSaveActionData(ScriptBitWriter writer)
void ToggleActionBypass()
Temporary fix for an issue of SetSendActionDataFlag not working properly from PerformAction.
float SCR_GetMaximumValue()
Scripted version of the GetMaximumValue that can be overriden for custom handling.
string m_sActionCanceledSoundEvent
Action canceled sound event name.
void PlayMovementAndStopSound(float lerp)
Plays movement and stop movement sound events.
bool m_bLoopAction
Flag for restarting the process when end value is reached.
void HandleAction(float value)
string m_sActionIncrease
Name of action to control the input.
static IEntity GetLocalControlledEntity()
This action will take care of the synchronization of the signal value.
enum EPhysicsLayerPresets Vehicle
SCR_FieldOfViewSettings Attribute