|
Arma Reforger Script API
|
Gadget base class. More...
Public Member Functions | |
| 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) |
Public Attributes | |
| bool | m_bFocused |
Protected Member Functions | |
| 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 () |
Protected Member Functions inherited from ScriptGameComponent | |
| bool | OnTicksOnRemoteProxy () |
Protected Attributes | |
| EGadgetAnimVariable | m_eAnimVariable |
| SCR_EUseContext | m_eUseMask |
| vector | m_vEquipmentSlotOffset |
| float | m_fWeaponNoFireTime |
| bool | m_bCanBeHeld |
| bool | m_bActivated = false |
| EGadgetMode | m_iMode = EGadgetMode.ON_GROUND |
| ChimeraCharacter | m_CharacterOwner |
Gadget base class.
| void SCR_GadgetComponent.ActivateAction | ( | ) |
Action listener callback.
Implemented in SCR_CampaignBuildingGadgetToolComponent, SCR_ConsumableItemComponent, SCR_DetonatorGadgetComponent, and SCR_FlashlightComponent.
| void SCR_GadgetComponent.ActivateGadgetUpdate | ( | ) |
Activate gadget frame update.
Implemented in SCR_CompassComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_RadioComponent, and SCR_WristwatchComponent.
| bool SCR_GadgetComponent.CanBeHeld | ( | ) |
Can be held in hand.
| bool SCR_GadgetComponent.CanBeRaised | ( | ) |
Gadget has a raised animation version.
Implemented in SCR_BinocularsComponent, SCR_CompassComponent, SCR_DetonatorGadgetComponent, SCR_MortarShellGadgetComponent, and SCR_WristwatchComponent.
|
protected |
Starts on frame update event.
| void SCR_GadgetComponent.DeactivateGadgetUpdate | ( | ) |
Deactivate gadget frame flag.
Implemented in SCR_CompassComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_RadioComponent, and SCR_WristwatchComponent.
|
protected |
| EGadgetAnimVariable SCR_GadgetComponent.GetAnimVariable | ( | ) |
| ChimeraCharacter SCR_GadgetComponent.GetCharacterOwner | ( | ) |
Get IEntity in possession of this Gadget.
| EGadgetMode SCR_GadgetComponent.GetMode | ( | ) |
Get gadget mode.
| EGadgetType SCR_GadgetComponent.GetType | ( | ) |
Get gadget type.
Implemented in SCR_BallisticTableComponent, SCR_BinocularsComponent, SCR_CampaignBuildingGadgetToolComponent, SCR_CompassComponent, SCR_ConsumableItemComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_MapGadgetComponent, SCR_MortarShellGadgetComponent, SCR_RadioComponent, SCR_SupportStationGadgetComponent, and SCR_WristwatchComponent.
| SCR_EUseContext SCR_GadgetComponent.GetUseMask | ( | ) |
Provides value that contains mask of contexts from which this gadget can be toggled.
| float SCR_GadgetComponent.GetWeaponNoFireTime | ( | ) |
| bool SCR_GadgetComponent.IsToggledOn | ( | ) |
Is gadget toggled on/off.
| bool SCR_GadgetComponent.IsUsingADSControls | ( | ) |
Gadget uses ADS controls from gadget raisable context.
Implemented in SCR_BinocularsComponent, SCR_CompassComponent, and SCR_WristwatchComponent.
| bool SCR_GadgetComponent.IsVisibleEquipped | ( | ) |
Visible when attached to character gear, further condition may determine visibility, such as if the equipment slot is obstructed by something else.
Implemented in SCR_BinocularsComponent, SCR_ConsumableItemComponent, SCR_FlashlightComponent, SCR_MortarShellGadgetComponent, and SCR_RadioComponent.
|
protected |
Clear gadget mode.
| [in] | mode | is the mode being cleared |
Implemented in SCR_BallisticTableComponent, SCR_BinocularsComponent, SCR_CampaignBuildingGadgetToolComponent, SCR_CompassComponent, SCR_ConsumableItemComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_MapGadgetComponent, SCR_MortarShellGadgetComponent, and SCR_WristwatchComponent.
|
protected |
Set gadget mode.
| [in] | mode | is the target mode being switched to |
| [in] | charOwner |
Implemented in SCR_BallisticTableComponent, SCR_BinocularsComponent, SCR_CampaignBuildingGadgetToolComponent, SCR_CompassComponent, SCR_ConsumableItemComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_MapGadgetComponent, SCR_MortarShellGadgetComponent, SCR_RadioComponent, and SCR_WristwatchComponent.
| override void SCR_GadgetComponent.OnDelete | ( | IEntity | owner | ) |
Implemented in SCR_BallisticTableComponent, and SCR_ConsumableItemComponent.
| void SCR_GadgetComponent.OnModeChanged | ( | EGadgetMode | mode, |
| IEntity | charOwner ) |
Gadget mode change event.
| [in] | mode | is the target mode being switched to |
| [in] | charOwner |
| void SCR_GadgetComponent.OnParentSlotChanged | ( | InventoryStorageSlot | oldSlot, |
| InventoryStorageSlot | newSlot ) |
InventoryItemComponent event.
| override void SCR_GadgetComponent.OnPostInit | ( | IEntity | owner | ) |
Implemented in SCR_CompassComponent, SCR_DetonatorGadgetComponent, SCR_RadioComponent, and SCR_WristwatchComponent.
| void SCR_GadgetComponent.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 |
Implemented in SCR_FlashlightComponent.
| void SCR_GadgetComponent.OnToggleActive | ( | bool | state | ) |
Event called from SCR_GadgetManagerComponent through RPC request.
| [in] | state | is gadget state: true - active / false - inactive |
Implemented in SCR_CampaignBuildingGadgetToolComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, and SCR_MortarShellGadgetComponent.
| override bool SCR_GadgetComponent.RplLoad | ( | ScriptBitReader | reader | ) |
| override bool SCR_GadgetComponent.RplSave | ( | ScriptBitWriter | writer | ) |
| void SCR_GadgetComponent.ToggleActive | ( | bool | state, |
| SCR_EUseContext | context ) |
Synchronise gadget state.
| [in] | state | is target state true = active, false = inactive |
Implemented in SCR_DetonatorGadgetComponent, and SCR_FlashlightComponent.
| void SCR_GadgetComponent.ToggleFocused | ( | bool | enable | ) |
Toggle gadget focus state.
| [in] | enable | is target state |
Implemented in SCR_BinocularsComponent, and SCR_MapGadgetComponent.
| void SCR_GadgetComponent.Update | ( | float | timeSlice | ) |
| [in] | timeSlice |
Implemented in SCR_CampaignBuildingGadgetToolComponent, SCR_CompassComponent, SCR_DetonatorGadgetComponent, SCR_FlashlightComponent, SCR_RadioComponent, and SCR_WristwatchComponent.
| void SCR_GadgetComponent.UpdateVisibility | ( | EGadgetMode | mode | ) |
Set visibility when show/hide hand animation starts/finishes.
Implemented in SCR_RadioComponent.
|
protected |
|
protected |
| bool SCR_GadgetComponent.m_bFocused |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |