|
Arma Reforger Script API
|
Public Member Functions | |
| int | GetNumberOfConnectedCharges () |
| array< RplId > | GetConnectedCharges () |
| bool | IsAttachedToTheDetonator (SCR_ExplosiveChargeComponent explosiveChargeComp) |
| bool | IsAttachedToTheDetonator (RplId explosiveChargeCompId) |
| bool | IsChargeInRange (vector pos, SCR_ExplosiveChargeComponent explosiveChargeComp) |
| Validates if provided charge is on the list and in usable range of that detonator. | |
| bool | IsChargeInRange (vector pos, RplId explosiveChargeCompId) |
| Validates if provided charge is on the list and in usable range of that detonator. | |
| override void | ToggleActive (bool state, SCR_EUseContext context) |
| Synchronise gadget state. | |
| override void | OnToggleActive (bool state) |
| Event called from SCR_GadgetManagerComponent through RPC request. | |
| void | ActivateAction (notnull IEntity pUserEntity) |
| Method meant for client side triggering of the action from outside of the gadget toggle mechanic. | |
| void | ConnectNewCharge (RplId explosiveChargeCompId, bool shouldReplicate=true) |
| Add new charge to the list of connected charges. | |
| void | RemoveChargeFromTheList (RplId chargeCompToDisconnect, bool shouldReplicate=true) |
| Remove provided charge from the listed of connected charges. | |
| void | ReplaceChargeFromTheList (RplId chargeCompToReplace, RplId replaceWith=RplId.Invalid()) |
| Removes replaced trigger id and appends in its place provided replacement while preventing addition of the same RplId indefinitely. | |
| void | RemoveAllChargesFromTheList () |
| Remove all charges from the listed of connected charges. | |
| override EGadgetType | GetType () |
| Get gadget type. | |
| override bool | CanBeRaised () |
| Gadget has a raised animation version. | |
| override void | ActivateGadgetUpdate () |
| Activate gadget frame update. | |
| override void | DeactivateGadgetUpdate () |
| Deactivate gadget frame flag. | |
| override void | Update (float timeSlice) |
| override void | EOnInit (IEntity owner) |
| override void | OnPostInit (IEntity owner) |
| override bool | RplSave (ScriptBitWriter writer) |
| override bool | RplLoad (ScriptBitReader reader) |
Public Member Functions inherited from SCR_GadgetComponent | |
| EGadgetAnimVariable | GetAnimVariable () |
| float | GetWeaponNoFireTime () |
| bool | IsToggledOn () |
| Is gadget toggled on/off. | |
| 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 | UpdateVisibility (EGadgetMode mode) |
| Set visibility when show/hide hand animation starts/finishes. | |
| void | ToggleFocused (bool enable) |
| Toggle gadget focus state. | |
| ChimeraCharacter | GetCharacterOwner () |
| Get IEntity in possession of this Gadget. | |
| 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 | 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. | |
| override void | OnDelete (IEntity owner) |
Protected Member Functions | |
| void | OnNumberOfConnectedChargesChanged () |
| void | OnAnimationEvent (AnimationEventID animEventType, AnimationEventID animUserString, int intParam, float timeFromStart, float timeToEnd) |
| Callback called when animation event happens. | |
| void | OnAnimationEnded (IEntity item, bool successful, ItemUseParameters animParams) |
| Callback called when animation of using the item ends. | |
| void | DetonateExplosiveCharge () |
| Trigger detonation of explosive charge if there is some connected and in range. | |
| override void | ActivateAction () |
| Action listener callback. | |
| void | PlaySound (string soundName) |
| Play local sound from this entity. | |
| void | UpdateWiresVisibility (bool visible=false) |
| Change visibility of sloted wires. | |
| void | ShowConnectedWiresForChargesInRange () |
| Checks if there are any charges in range and if so then will show connected wires. | |
| void | OnDeployedStateChanged (bool newState, SCR_BaseDeployableInventoryItemComponent component) |
| override void | ModeSwitch (EGadgetMode mode, IEntity charOwner) |
| Set gadget mode. | |
| override void | ModeClear (EGadgetMode mode) |
| Clear gadget mode. | |
Protected Member Functions inherited from SCR_GadgetComponent | |
| void | ConnectToGadgetsSystem () |
| Starts on frame update event. | |
| void | DisconnectFromGadgetsSystem () |
Protected Member Functions inherited from ScriptGameComponent | |
| bool | OnTicksOnRemoteProxy () |
Protected Attributes | |
| float | m_fMaxDetonationRange |
| int | m_iNumberOfConnectedCharges |
| ref array< RplId > | m_aConnectedCharges = {} |
| float | m_fVisibilityCheckDelay |
| RplComponent | m_RplComp |
| ChimeraCharacter | m_User |
| AnimationEventID | m_iDetonatorTriggeredEventID = -1 |
Protected Attributes inherited from SCR_GadgetComponent | |
| 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 |
Static Protected Attributes | |
| const string | TRIGGER_ANIMATION_EVENT_NAME = "DetonatorTriggered" |
| const string | ANIMATION_BIND_COMMAND = "CMD_Item_Action" |
| const int | UPDATE_WIRES_VISIBILITY_DELAY = 500 |
Additional Inherited Members | |
Public Attributes inherited from SCR_GadgetComponent | |
| bool | m_bFocused |
|
protected |
Action listener callback.
Implements SCR_GadgetComponent.
| void SCR_DetonatorGadgetComponent.ActivateAction | ( | notnull IEntity | pUserEntity | ) |
Method meant for client side triggering of the action from outside of the gadget toggle mechanic.
| override void SCR_DetonatorGadgetComponent.ActivateGadgetUpdate | ( | ) |
Activate gadget frame update.
Implements SCR_GadgetComponent.
| override bool SCR_DetonatorGadgetComponent.CanBeRaised | ( | ) |
Gadget has a raised animation version.
Implements SCR_GadgetComponent.
| void SCR_DetonatorGadgetComponent.ConnectNewCharge | ( | RplId | explosiveChargeCompId, |
| bool | shouldReplicate = true ) |
Add new charge to the list of connected charges.
| override void SCR_DetonatorGadgetComponent.DeactivateGadgetUpdate | ( | ) |
Deactivate gadget frame flag.
Implements SCR_GadgetComponent.
|
protected |
Trigger detonation of explosive charge if there is some connected and in range.
| override void SCR_DetonatorGadgetComponent.EOnInit | ( | IEntity | owner | ) |
| array< RplId > SCR_DetonatorGadgetComponent.GetConnectedCharges | ( | ) |
| int SCR_DetonatorGadgetComponent.GetNumberOfConnectedCharges | ( | ) |
| override EGadgetType SCR_DetonatorGadgetComponent.GetType | ( | ) |
| bool SCR_DetonatorGadgetComponent.IsAttachedToTheDetonator | ( | RplId | explosiveChargeCompId | ) |
| [in] | explosiveChargeCompId |
| bool SCR_DetonatorGadgetComponent.IsAttachedToTheDetonator | ( | SCR_ExplosiveChargeComponent | explosiveChargeComp | ) |
| [in] | explosiveChargeComp |
| bool SCR_DetonatorGadgetComponent.IsChargeInRange | ( | vector | pos, |
| RplId | explosiveChargeCompId ) |
Validates if provided charge is on the list and in usable range of that detonator.
| [in] | pos | position from which distance will be measured |
| [in] | explosiveChargeCompId | replication id of the explosive charge component of the object to which distance will be checked |
| bool SCR_DetonatorGadgetComponent.IsChargeInRange | ( | vector | pos, |
| SCR_ExplosiveChargeComponent | explosiveChargeComp ) |
Validates if provided charge is on the list and in usable range of that detonator.
| [in] | pos | position from which distance will be measured |
| [in] | explosiveChargeComp | explosive charge component of the object to which distance will be checked |
|
protected |
|
protected |
Set gadget mode.
| [in] | mode | is the target mode being switched to |
| [in] | charOwner |
Implements SCR_GadgetComponent.
|
protected |
Callback called when animation of using the item ends.
| [in] | item | animated item |
| [in] | successful | if animation was able to finish or was interrupted |
| [in] | animParams | parameters that were used to play this animation |
|
protected |
Callback called when animation event happens.
| [in] | animEventType | ID of animation event. |
| [in] | animUserString | String parameter of animation event |
| [in] | intParam | int parameter of animation event |
| [in] | timeFromStart | time from Start of animation event |
| [in] | timeToEnd | time to end of animation event |
|
protected |
| [in] | deployed |
|
protected |
| override void SCR_DetonatorGadgetComponent.OnPostInit | ( | IEntity | owner | ) |
Implements SCR_GadgetComponent.
| override void SCR_DetonatorGadgetComponent.OnToggleActive | ( | bool | state | ) |
Event called from SCR_GadgetManagerComponent through RPC request.
| [in] | state | is gadget state: true - active / false - inactive |
Implements SCR_GadgetComponent.
|
protected |
Play local sound from this entity.
| [in] | soundName |
| void SCR_DetonatorGadgetComponent.RemoveAllChargesFromTheList | ( | ) |
Remove all charges from the listed of connected charges.
| void SCR_DetonatorGadgetComponent.RemoveChargeFromTheList | ( | RplId | chargeCompToDisconnect, |
| bool | shouldReplicate = true ) |
Remove provided charge from the listed of connected charges.
| void SCR_DetonatorGadgetComponent.ReplaceChargeFromTheList | ( | RplId | chargeCompToReplace, |
| RplId | replaceWith = RplId::Invalid() ) |
Removes replaced trigger id and appends in its place provided replacement while preventing addition of the same RplId indefinitely.
| override bool SCR_DetonatorGadgetComponent.RplLoad | ( | ScriptBitReader | reader | ) |
Implements SCR_GadgetComponent.
| override bool SCR_DetonatorGadgetComponent.RplSave | ( | ScriptBitWriter | writer | ) |
Implements SCR_GadgetComponent.
|
protected |
Checks if there are any charges in range and if so then will show connected wires.
| override void SCR_DetonatorGadgetComponent.ToggleActive | ( | bool | state, |
| SCR_EUseContext | context ) |
Synchronise gadget state.
| [in] | state | is target state true = active, false = inactive |
Implements SCR_GadgetComponent.
| override void SCR_DetonatorGadgetComponent.Update | ( | float | timeSlice | ) |
| [in] | timeSlice |
Implements SCR_GadgetComponent.
|
protected |
Change visibility of sloted wires.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |