Arma Reforger Script API
|
Public Member Functions | |
override void | Update (float timeSlice) |
override void | OnToggleActive (bool state) |
Event called from SCR_GadgetManagerComponent through RPC request. | |
override EGadgetType | GetType () |
Get gadget type. | |
override void | ModeSwitch (EGadgetMode mode, IEntity charOwner) |
Triggered when an operation with gadget is performed - picked up, taken into hands, back to backpack etc. | |
void | ToolToHand () |
Building tool taken to hand - show preview etc. | |
void | OnPossessed (int playerID, bool isPossessing, RplId mainEntityID) |
void | ToolToInventory () |
Building tool out of hands - show preview. | |
SCR_EditorModeEntity | GetBuildingModeEntity () |
Search for an editor mode entity (exists only when the player is in editor mode) | |
void | OnConsciousnessChanged (bool conscious) |
void | RemoveOnConsciousnessChanged () |
int | GetToolConstructionValue () |
SCR_CharacterControllerComponent | GetCharacterControllerComponent () |
void | RemoveEventHandlers () |
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 | RemovePreviews () |
void | OnEditorOpened () |
Method called when character has a shovel in hands and any editor mode is opned. | |
void | OnEditorClosed () |
Method called when character has a shovel in hands and any editor mode is closed. | |
bool | TraceCompositionToShowPreview () |
Trace the possible previews. | |
bool | EvaluatePreviewEntity (IEntity ent) |
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 () |
Protected Member Functions inherited from ScriptGameComponent | |
bool | OnTicksOnRemoteProxy () |
Protected Attributes | |
float | m_fDistanceToShowPreview |
float | m_fDistanceToBuildComposition |
int | m_iConstructionValue |
float | m_fTraceDelay |
ref array< SCR_CampaignBuildingLayoutComponent > | m_aShownPreview = {} |
ref array< SCR_CampaignBuildingLayoutComponent > | m_aShownPreviewOld = {} |
bool | m_bToolActiveWhenEditorOpen |
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 |
Static Protected Attributes | |
const static float | TRACE_DELAY_VALUE = 0.5 |
Additional Inherited Members | |
Public Attributes inherited from SCR_GadgetComponent | |
bool | m_bFocused |
|
protected |
SCR_EditorModeEntity SCR_CampaignBuildingGadgetToolComponent.GetBuildingModeEntity | ( | ) |
Search for an editor mode entity (exists only when the player is in editor mode)
SCR_CharacterControllerComponent SCR_CampaignBuildingGadgetToolComponent.GetCharacterControllerComponent | ( | ) |
int SCR_CampaignBuildingGadgetToolComponent.GetToolConstructionValue | ( | ) |
override EGadgetType SCR_CampaignBuildingGadgetToolComponent.GetType | ( | ) |
override void SCR_CampaignBuildingGadgetToolComponent.ModeSwitch | ( | EGadgetMode | mode, |
IEntity | charOwner | ||
) |
Triggered when an operation with gadget is performed - picked up, taken into hands, back to backpack etc.
[in] | mode | |
[in] | charOwner | must have a GadgetManager component |
Implements SCR_GadgetComponent.
void SCR_CampaignBuildingGadgetToolComponent.OnConsciousnessChanged | ( | bool | conscious | ) |
|
protected |
Method called when character has a shovel in hands and any editor mode is closed.
|
protected |
Method called when character has a shovel in hands and any editor mode is opned.
void SCR_CampaignBuildingGadgetToolComponent.OnPossessed | ( | int | playerID, |
bool | isPossessing, | ||
RplId | mainEntityID | ||
) |
[in] | playerID | |
[in] | isPossessing | |
[in] | mainEntityID |
override void SCR_CampaignBuildingGadgetToolComponent.OnToggleActive | ( | bool | state | ) |
Event called from SCR_GadgetManagerComponent through RPC request.
[in] | state | is gadget state: true - active / false - inactive |
Implements SCR_GadgetComponent.
void SCR_CampaignBuildingGadgetToolComponent.RemoveEventHandlers | ( | ) |
void SCR_CampaignBuildingGadgetToolComponent.RemoveOnConsciousnessChanged | ( | ) |
|
protected |
void SCR_CampaignBuildingGadgetToolComponent.ToolToHand | ( | ) |
Building tool taken to hand - show preview etc.
void SCR_CampaignBuildingGadgetToolComponent.ToolToInventory | ( | ) |
Building tool out of hands - show preview.
|
protected |
Trace the possible previews.
override void SCR_CampaignBuildingGadgetToolComponent.Update | ( | float | timeSlice | ) |
[in] | timeSlice |
Implements SCR_GadgetComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |