Arma Reforger Script API
|
Public Member Functions | |
override void | OnToggleActive (bool state) |
Event called from SCR_GadgetManagerComponent through RPC request. | |
int | GetNumberOfAvailableLenses () |
void | CycleThroughLenses (bool direction) |
Cycle through all available lenses. | |
override void | OnSlotOccludedStateChanged (bool occluded) |
Method called when slot to which item is attached to changed its occlusion state. | |
override void | ActivateAction () |
Action listener callback. | |
override EGadgetType | GetType () |
Get gadget type. | |
override bool | IsVisibleEquipped () |
Visible when attached to character gear, further condition may determine visibility, such as if the equipment slot is obstructed by something else. | |
override bool | RplSave (ScriptBitWriter writer) |
override bool | RplLoad (ScriptBitReader reader) |
override bool | OnTicksOnRemoteProxy () |
override void | Update (float timeSlice) |
override void | EOnInit (IEntity owner) |
Public Member Functions inherited from SCR_GadgetComponent | |
EGadgetAnimVariable | GetAnimVariable () |
float | GetWeaponNoFireTime () |
bool | IsToggledOn () |
Is gadget toggled on/off. | |
void | OnToggleActive (bool state) |
Event called from SCR_GadgetManagerComponent through RPC request. | |
void | OnParentSlotChanged (InventoryStorageSlot oldSlot, InventoryStorageSlot newSlot) |
InventoryItemComponent event. | |
void | OnModeChanged (EGadgetMode mode, IEntity charOwner) |
Gadget mode change event. | |
void | OnSlotOccludedStateChanged (bool occluded) |
Method called when slot to which item is attached to changed its occlusion state. | |
void | ActivateGadgetUpdate () |
Activate gadget frame update. | |
void | DeactivateGadgetUpdate () |
Deactivate gadget frame flag. | |
void | UpdateVisibility (EGadgetMode mode) |
Set visibility when show/hide hand animation starts/finishes. | |
void | ToggleActive (bool state, SCR_EUseContext context) |
Synchronise gadget state. | |
void | ActivateAction () |
Action listener callback. | |
void | ToggleFocused (bool enable) |
Toggle gadget focus state. | |
ChimeraCharacter | GetCharacterOwner () |
Get IEntity in possession of this Gadget. | |
EGadgetType | GetType () |
Get gadget type. | |
EGadgetMode | GetMode () |
Get gadget mode. | |
bool | CanBeHeld () |
Can be held in hand. | |
SCR_EUseContext | GetUseMask () |
Provides value that contains mask of contexts from which this gadget can be toggled. | |
bool | CanBeRaised () |
Gadget has a raised animation version. | |
bool | IsUsingADSControls () |
Gadget uses ADS controls from gadget raisable context. | |
bool | IsVisibleEquipped () |
Visible when attached to character gear, further condition may determine visibility, such as if the equipment slot is obstructed by something else. | |
void | Update (float timeSlice) |
override bool | RplSave (ScriptBitWriter writer) |
override bool | RplLoad (ScriptBitReader reader) |
override void | OnDelete (IEntity owner) |
override void | OnPostInit (IEntity owner) |
Protected Member Functions | |
void | UpdateLightState () |
Update state of light ON/OFF. | |
void | SwitchLenses (int filter) |
Switch flashlight lenses. | |
void | EnableLight () |
Spawn light entity. | |
void | DisableLight () |
Remove light. | |
void | SetShadowNearPlane (bool state, bool isLeavingVehicle=false) |
Set near plane of light shadow to avoid blocking the light with arm/weapon. | |
void | AdjustTransform (vector offset=vector.Zero) |
void | OnOwnerLifeStateChanged (ECharacterLifeState previousLifeState, ECharacterLifeState newLifeState) |
SCR_CompartmentAccessComponent event. | |
void | OnCompartmentEntered (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move) |
SCR_CompartmentAccessComponent event. | |
void | OnCompartmentLeft (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move) |
SCR_CompartmentAccessComponent event. | |
override void | ModeSwitch (EGadgetMode mode, IEntity charOwner) |
Set gadget mode. | |
override void | ModeClear (EGadgetMode mode) |
Clear gadget mode. | |
override void | ToggleActive (bool state, SCR_EUseContext context) |
Synchronise gadget state. | |
override void | ActivateGadgetUpdate () |
Activate gadget frame update. | |
override void | DeactivateGadgetUpdate () |
Deactivate gadget frame flag. | |
Protected Member Functions inherited from SCR_GadgetComponent | |
void | ModeSwitch (EGadgetMode mode, IEntity charOwner) |
Set gadget mode. | |
void | ModeClear (EGadgetMode mode) |
Clear gadget mode. | |
void | ConnectToGadgetsSystem () |
Starts on frame update event. | |
void | DisconnectFromGadgetsSystem () |
bool | OnTicksOnRemoteProxy () |
Protected Attributes | |
float | m_fEmissiveIntensity |
ref array< ref SCR_LenseColor > | m_aLenseArray |
float | m_fLightNearPlaneHand |
float | m_fLightNearPlaneStrapped |
float | m_fLightNearPlaneVehicle |
vector | m_vFlashlightAdjustOffset |
bool | m_bLastLightState |
bool | m_bIsSlottedVehicle |
bool | m_bIsOccluded |
int | m_iCurrentLenseColor |
vector | m_vAnglesCurrent |
vector | m_vAnglesTarget |
vector | m_ItemMat [4] |
LightEntity | m_Light |
ParametricMaterialInstanceComponent | m_EmissiveMaterial |
SCR_CompartmentAccessComponent | m_CompartmentComp |
SCR_CharacterControllerComponent | m_CharController |
Protected Attributes inherited from SCR_GadgetComponent | |
EGadgetAnimVariable | m_eAnimVariable |
SCR_EUseContext | m_eUseMask |
vector | m_vEquipmentSlotOffset |
float | m_fWeaponNoFireTime |
bool | m_bActivated = false |
EGadgetMode | m_iMode = EGadgetMode.ON_GROUND |
ChimeraCharacter | m_CharacterOwner |
Additional Inherited Members | |
Public Attributes inherited from SCR_GadgetComponent | |
bool | m_bFocused |
override void SCR_FlashlightComponent.ActivateAction | ( | ) |
Action listener callback.
Implements SCR_GadgetComponent.
|
protected |
Activate gadget frame update.
Implements SCR_GadgetComponent.
|
protected |
void SCR_FlashlightComponent.CycleThroughLenses | ( | bool | direction | ) |
Cycle through all available lenses.
[in] | direction | decides whether it will switch to next (true) / previous (false) lens color |
|
protected |
Deactivate gadget frame flag.
Implements SCR_GadgetComponent.
|
protected |
Remove light.
|
protected |
Spawn light entity.
override void SCR_FlashlightComponent.EOnInit | ( | IEntity | owner | ) |
int SCR_FlashlightComponent.GetNumberOfAvailableLenses | ( | ) |
override EGadgetType SCR_FlashlightComponent.GetType | ( | ) |
override bool SCR_FlashlightComponent.IsVisibleEquipped | ( | ) |
Visible when attached to character gear, further condition may determine visibility, such as if the equipment slot is obstructed by something else.
Implements SCR_GadgetComponent.
|
protected |
|
protected |
Set gadget mode.
[in] | mode | is the target mode being switched to |
[in] | charOwner |
Implements SCR_GadgetComponent.
|
protected |
|
protected |
|
protected |
override void SCR_FlashlightComponent.OnSlotOccludedStateChanged | ( | bool | occluded | ) |
Method called when slot to which item is attached to changed its occlusion state.
[in] | occluded | if parent slot is now occluded or not |
Implements SCR_GadgetComponent.
override bool SCR_FlashlightComponent.OnTicksOnRemoteProxy | ( | ) |
Implements ScriptGameComponent.
override void SCR_FlashlightComponent.OnToggleActive | ( | bool | state | ) |
Event called from SCR_GadgetManagerComponent through RPC request.
[in] | state | is gadget state: true - active / false - inactive |
Implements SCR_GadgetComponent.
override bool SCR_FlashlightComponent.RplLoad | ( | ScriptBitReader | reader | ) |
Implements SCR_GadgetComponent.
override bool SCR_FlashlightComponent.RplSave | ( | ScriptBitWriter | writer | ) |
Implements SCR_GadgetComponent.
|
protected |
Set near plane of light shadow to avoid blocking the light with arm/weapon.
[in] | state | determines mode: false - in hand / true - strapped |
[in] | isLeavingVehicle | is signal for removing vehicle near plane mode |
|
protected |
Switch flashlight lenses.
[in] | filter |
|
protected |
Synchronise gadget state.
[in] | state | is target state true = active, false = inactive |
Implements SCR_GadgetComponent.
override void SCR_FlashlightComponent.Update | ( | float | timeSlice | ) |
[in] | timeSlice |
Implements SCR_GadgetComponent.
|
protected |
Update state of light ON/OFF.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |