|
Arma Reforger Script API
|
Public Member Functions | |
| void | RPC_AskSetPlacementPosition (vector right, vector up, vector forward, vector position, RplId placeableId, RplId characterId) |
| Client side method for informing the authority about where item should be placed upon removal from their inventory. | |
| void | RPC_AskPlaceItem (RplId placeableId) |
| placeableId = id of items rpl component | |
| void | RPC_AskPlaceItemWithParentChange (RplId placeableId, RplId targetId, int nodeId) |
| placeableId = id of items rpl component | |
| void | AskPlaceItem (RplId placeableId, RplId targetId, int nodeId, bool isBeingAttachedToEntity) |
| Client side method for finishing item placement when that item was successfully removed from their inventory. | |
| void | ValidateTargetEntityExistance () |
| void | SetPlacedItem (IEntity item) |
| void | SetPreviewEntity (IEntity preview, bool deleteOldPreview=true) |
| void | SetPlaceableItemComponent (SCR_PlaceableItemComponent placeableItemComp) |
| SCR_PlaceableItemComponent | GetPlaceableItemComponent () |
| void | EnablePlacement (bool enabled) |
| Enable listening for actions and position validation. | |
| void | DisablePreview () |
| IEntity | GetWeaponFromWeaponComponent (BaseWeaponComponent weaponComponent) |
| void | UseXZFixedPlacement (IEntity owner, float maxPlacementDistance, vector cameraMat[4]) |
| void | UseXYZPlacement (IEntity owner, float maxPlacementDistance, vector cameraMat[4]) |
| void | ValidatePlacement (vector up, IEntity tracedEntity, BaseWorld world, IEntity character, out ENotification cantPlaceReason) |
| bool | TraceEntitiesCallback (notnull IEntity e, vector start="0 0 0", vector dir="0 0 0") |
| void | SCR_ItemPlacementComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Static Public Attributes | |
| static const string | ACTION_CONTEXT_PLACEMENT = "CharacterPlacementContext" |
| static const string | ACTION_NAME_PLACEMENT = "CharacterPlaceItem" |
| static const string | ACTION_NAME_FORCE_PLACEMENT = "CharacterForcePlaceItem" |
| static const string | ACTION_NAME_CHANGE_ITEM = "ChangePlacedItem" |
| static const string | ACTION_NAME_CHANGE_VARIANT = "ChangedPlacedVariant" |
Protected Member Functions | |
| void | UnregisterEvents (IEntity from) |
| void | RegisterEvents (IEntity to) |
| void | OnControlledEntityChanged (IEntity from, IEntity to) |
| void | ForcePlaceItem () |
| Callback method triggered by button press. | |
| void | StartPlaceItem () |
| Callback method triggered by button press. | |
| void | OnPlacingEnded (IEntity item, bool successful, ItemUseParameters animParams) |
| void | EnablePreview (IEntity weapon) |
| void | OnComparmentEntered (IEntity targetEntity, BaseCompartmentManagerComponent manager, int mgrID, int slotID, bool move) |
| void | GetOnCompartmentLeft () |
| void | OnWeaponChangeEnded (BaseWeaponComponent newWeaponSlot) |
| void | OnWeaponChanged (BaseWeaponComponent newWeaponSlot) |
| void | OnCharacterDeath (SCR_CharacterControllerComponent characterController, IEntity killerEntity, notnull Instigator killer) |
| void | TogglePreview (IEntity weapon) |
| override void | EOnFrame (IEntity owner, float timeSlice) |
| bool | FilterCallback (IEntity e) |
| bool | ValidateEntity (notnull IEntity entity) |
| void | OnEditorOpened () |
| void | OnEditorClosed () |
| void | RegisterToManagerInvokers (SCR_EditorManagerEntity manager) |
| override void | OnPostInit (IEntity owner) |
| void | InitEditorListeners () |
| override void | EOnInit (IEntity owner) |
Protected Attributes | |
| ResourceName | m_sCanBuildMaterial |
| ResourceName | m_sCannotBuildMaterial |
| ResourceName | m_sTransparentMaterial |
| int | m_iEquipComplete |
| int | m_iTargetEntityNodeID |
| bool | m_bInEditor |
| bool | m_bIsBeingAttachedToEntity |
| vector | m_vCurrentMat [4] |
| vector | m_aCamDeploymentPosition [4] |
| IEntity | m_PlacedItem |
| ENotification | m_eCantPlaceReason |
| SCR_PlaceableItemComponent | m_PlaceableItem |
| IEntity | m_PreviewEntity |
| SCR_CompartmentAccessComponent | m_CompartmnetAccessComponent |
| RplId | m_TargetId |
| IEntity | m_TargetEntity |
| void SCR_ItemPlacementComponent.SCR_ItemPlacementComponent | ( | IEntityComponentSource | src, |
| IEntity | ent, | ||
| IEntity | parent ) |
| [in] | src | |
| [in] | ent | |
| [in] | parent |
| void SCR_ItemPlacementComponent.AskPlaceItem | ( | RplId | placeableId, |
| RplId | targetId, | ||
| int | nodeId, | ||
| bool | isBeingAttachedToEntity ) |
Client side method for finishing item placement when that item was successfully removed from their inventory.
| [in] | placeableId | replication id of placed item |
| [in] | targetId | replication id of object to which this item is being attached to |
| [in] | nodeId | node of the target object to which placed item will be attached to |
| [in] | isBeingAttachedToEntity |
| void SCR_ItemPlacementComponent.DisablePreview | ( | ) |
| void SCR_ItemPlacementComponent.EnablePlacement | ( | bool | enabled | ) |
Enable listening for actions and position validation.
| [in] | enabled | true when placement should be enabled, otherwise false |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Callback method triggered by button press.
|
protected |
| SCR_PlaceableItemComponent SCR_ItemPlacementComponent.GetPlaceableItemComponent | ( | ) |
| IEntity SCR_ItemPlacementComponent.GetWeaponFromWeaponComponent | ( | BaseWeaponComponent | weaponComponent | ) |
| [in] | weaponComponent |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_ItemPlacementComponent.RPC_AskPlaceItem | ( | RplId | placeableId | ) |
placeableId = id of items rpl component
| [in] | placeableId |
| void SCR_ItemPlacementComponent.RPC_AskPlaceItemWithParentChange | ( | RplId | placeableId, |
| RplId | targetId, | ||
| int | nodeId ) |
placeableId = id of items rpl component
| [in] | placeableId | |
| [in] | targetId | is an RplId of the owner of the surface to which this item is meant to be attached to |
| [in] | nodeId | is an node id of the surface to which this object is meant to be attached to |
| void SCR_ItemPlacementComponent.RPC_AskSetPlacementPosition | ( | vector | right, |
| vector | up, | ||
| vector | forward, | ||
| vector | position, | ||
| RplId | placeableId, | ||
| RplId | characterId ) |
Client side method for informing the authority about where item should be placed upon removal from their inventory.
| [in] | right | |
| [in] | up | |
| [in] | forward | |
| [in] | position | |
| [in] | placeableId | replication id of placed item |
| [in] | characterId | replication id of the character that placed it there |
| void SCR_ItemPlacementComponent.SetPlaceableItemComponent | ( | SCR_PlaceableItemComponent | placeableItemComp | ) |
| [in] | placeableItemComp |
| void SCR_ItemPlacementComponent.SetPlacedItem | ( | IEntity | item | ) |
| [in] | item |
| void SCR_ItemPlacementComponent.SetPreviewEntity | ( | IEntity | preview, |
| bool | deleteOldPreview = true ) |
| [in] | preview | |
| [in] | deleteOldPreview | true if previous preview should be deleted |
|
protected |
Callback method triggered by button press.
|
protected |
| bool SCR_ItemPlacementComponent.TraceEntitiesCallback | ( | notnull IEntity | e, |
| vector | start = "0 0 0", | ||
| vector | dir = "0 0 0" ) |
| [in] | e |
|
protected |
| void SCR_ItemPlacementComponent.UseXYZPlacement | ( | IEntity | owner, |
| float | maxPlacementDistance, | ||
| vector | cameraMat[4] ) |
| [in] | owner | |
| [in] | maxPlacementDistance | |
| [in] | cameraMat |
| void SCR_ItemPlacementComponent.UseXZFixedPlacement | ( | IEntity | owner, |
| float | maxPlacementDistance, | ||
| vector | cameraMat[4] ) |
| [in] | owner | |
| [in] | maxPlacementDistance | |
| [in] | cameraMat |
|
protected |
| [in] | entity |
| void SCR_ItemPlacementComponent.ValidatePlacement | ( | vector | up, |
| IEntity | tracedEntity, | ||
| BaseWorld | world, | ||
| IEntity | character, | ||
| out ENotification | cantPlaceReason ) |
| [in] | up | |
| [in] | tracedEntity | |
| [in] | world | |
| [in] | character |
| void SCR_ItemPlacementComponent.ValidateTargetEntityExistance | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |