Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlaceableInventoryItemComponent Class Reference
Inheritance diagram for SCR_PlaceableInventoryItemComponent:

Protected Member Functions

override void OnPostInit (IEntity owner)
RplId GetParentRplId ()
int GetParentNodeId ()
void PlacementDone (notnull ChimeraCharacter user)
void RPC_DoPlaceItem (RplId placingCharacterRplId)
void PlaceItem ()
bool ValidateEntity (notnull IEntity entity)
bool FilterCallback (notnull IEntity e)
void SetPlacementPosition (vector right, vector up, vector forward, vector position, RplId characterRplId)
 Authority method used to change the position at which item will placed when removed from the inventory.
override bool OverridePlacementTransform (IEntity caller, out vector computedTransform[4])
void OnPlacedOnGround ()
void PlayPlacedSound (vector up, vector position, string overrideSoundEvent=SCR_SoundEvent.SOUND_PLACE_OBJECT)
void PlaceItemWithParentChange (RplId newParentRplId, int nodeId=-1)
 Same as PlaceItem but with params that allow attaching the object to new parent entity.
void RPC_DoPlaceItemWithParentChange (RplId newParentRplId, int nodeId, RplId placingCharacterRplId)
void SetNewParent (RplId parentId=RplId.Invalid(), int nodeId=-1)
void AttachToNewParentWhenUnlocked (bool nowLocked)
void AttachToNewParent ()
 Method that will try to find new parent entity and make this entity a child of it.
void OnParentDamageStateChanged (SCR_HitZone hitZone)
void DetachFromParent ()
 Removes this entity from its parent hierarchy and places it on the ground.
void StartWatchingParentSlots ()
 Callback method triggered when item will finish its transfer to new parent when it is being attached to it.
void StopWatchingParentSlots ()
 Callback method when item is being transfered (f.e. picked up) after it was attached to some object.
override void OnDelete (IEntity owner)

Static Protected Member Functions

static ScriptInvokerItemPlaced GetOnPlacementDoneInvoker ()

Protected Attributes

vector m_vMat [4]
bool m_bUseTransform = false
RplId m_ParentRplId = RplId.Invalid()
RplId m_PlacingCharacterRplId = RplId.Invalid()
int m_iParentNodeId
IEntity m_Parent
IEntity m_RootParent

Static Protected Attributes

static ref ScriptInvokerItemPlaced s_OnPlacementDoneInvoker

Detailed Description

Definition at line 10 of file SCR_PlaceableInventoryItemComponent.c.

Member Function Documentation

◆ AttachToNewParent()

void SCR_PlaceableInventoryItemComponent::AttachToNewParent ( )
inlineprotected

Method that will try to find new parent entity and make this entity a child of it.

Definition at line 314 of file SCR_PlaceableInventoryItemComponent.c.

◆ AttachToNewParentWhenUnlocked()

void SCR_PlaceableInventoryItemComponent::AttachToNewParentWhenUnlocked ( bool nowLocked)
inlineprotected

Method that will try to find new parent entity and make this entity a child of it

Parameters
[in]nowLocked

Definition at line 302 of file SCR_PlaceableInventoryItemComponent.c.

◆ DetachFromParent()

void SCR_PlaceableInventoryItemComponent::DetachFromParent ( )
inlineprotected

Removes this entity from its parent hierarchy and places it on the ground.

Definition at line 383 of file SCR_PlaceableInventoryItemComponent.c.

◆ FilterCallback()

bool SCR_PlaceableInventoryItemComponent::FilterCallback ( notnull IEntity e)
inlineprotected
Parameters
[in]e
Returns

Definition at line 124 of file SCR_PlaceableInventoryItemComponent.c.

◆ GetOnPlacementDoneInvoker()

ScriptInvokerItemPlaced SCR_PlaceableInventoryItemComponent::GetOnPlacementDoneInvoker ( )
inlinestaticprotected
Returns

Definition at line 48 of file SCR_PlaceableInventoryItemComponent.c.

◆ GetParentNodeId()

int SCR_PlaceableInventoryItemComponent::GetParentNodeId ( )
inlineprotected
Returns

Definition at line 41 of file SCR_PlaceableInventoryItemComponent.c.

◆ GetParentRplId()

RplId SCR_PlaceableInventoryItemComponent::GetParentRplId ( )
inlineprotected
Returns

Definition at line 33 of file SCR_PlaceableInventoryItemComponent.c.

◆ OnDelete()

override void SCR_PlaceableInventoryItemComponent::OnDelete ( IEntity owner)
inlineprotected

Definition at line 473 of file SCR_PlaceableInventoryItemComponent.c.

◆ OnParentDamageStateChanged()

void SCR_PlaceableInventoryItemComponent::OnParentDamageStateChanged ( SCR_HitZone hitZone)
inlineprotected

Method that is meant to be added to the parent default hit zone in order to detect when it is destroyed

Parameters
[in]hitZone

Definition at line 375 of file SCR_PlaceableInventoryItemComponent.c.

◆ OnPlacedOnGround()

void SCR_PlaceableInventoryItemComponent::OnPlacedOnGround ( )
inlineprotected

Definition at line 172 of file SCR_PlaceableInventoryItemComponent.c.

◆ OnPostInit()

override void SCR_PlaceableInventoryItemComponent::OnPostInit ( IEntity owner)
inlineprotected
Returns

Definition at line 25 of file SCR_PlaceableInventoryItemComponent.c.

◆ OverridePlacementTransform()

override bool SCR_PlaceableInventoryItemComponent::OverridePlacementTransform ( IEntity caller,
out vector computedTransform[4] )
inlineprotected

Definition at line 149 of file SCR_PlaceableInventoryItemComponent.c.

◆ PlaceItem()

void SCR_PlaceableInventoryItemComponent::PlaceItem ( )
inlineprotected

Definition at line 92 of file SCR_PlaceableInventoryItemComponent.c.

◆ PlaceItemWithParentChange()

void SCR_PlaceableInventoryItemComponent::PlaceItemWithParentChange ( RplId newParentRplId,
int nodeId = -1 )
inlineprotected

Same as PlaceItem but with params that allow attaching the object to new parent entity.

Definition at line 240 of file SCR_PlaceableInventoryItemComponent.c.

◆ PlacementDone()

void SCR_PlaceableInventoryItemComponent::PlacementDone ( notnull ChimeraCharacter user)
inlineprotected
Parameters
[in]userthat placed this item

Definition at line 60 of file SCR_PlaceableInventoryItemComponent.c.

◆ PlayPlacedSound()

void SCR_PlaceableInventoryItemComponent::PlayPlacedSound ( vector up,
vector position,
string overrideSoundEvent = SCR_SoundEvent.SOUND_PLACE_OBJECT )
inlineprotected
Parameters
[in]up
[in]position

Definition at line 188 of file SCR_PlaceableInventoryItemComponent.c.

◆ RPC_DoPlaceItem()

void SCR_PlaceableInventoryItemComponent::RPC_DoPlaceItem ( RplId placingCharacterRplId)
inlineprotected

Definition at line 69 of file SCR_PlaceableInventoryItemComponent.c.

◆ RPC_DoPlaceItemWithParentChange()

void SCR_PlaceableInventoryItemComponent::RPC_DoPlaceItemWithParentChange ( RplId newParentRplId,
int nodeId,
RplId placingCharacterRplId )
inlineprotected
Parameters
[in]newParentRplId
[in]nodeId

Definition at line 251 of file SCR_PlaceableInventoryItemComponent.c.

◆ SetNewParent()

void SCR_PlaceableInventoryItemComponent::SetNewParent ( RplId parentId = RplId.Invalid(),
int nodeId = -1 )
inlineprotected

Method for updating parent when proxy streams in placeable item

Parameters
[in]parentIdreplication id of a entity to which this item should be attached
[in]nodeIdid of a node to which this item will be attached to

Definition at line 288 of file SCR_PlaceableInventoryItemComponent.c.

◆ SetPlacementPosition()

void SCR_PlaceableInventoryItemComponent::SetPlacementPosition ( vector right,
vector up,
vector forward,
vector position,
RplId characterRplId )
inlineprotected

Authority method used to change the position at which item will placed when removed from the inventory.

Definition at line 138 of file SCR_PlaceableInventoryItemComponent.c.

◆ StartWatchingParentSlots()

void SCR_PlaceableInventoryItemComponent::StartWatchingParentSlots ( )
inlineprotected

Callback method triggered when item will finish its transfer to new parent when it is being attached to it.

Definition at line 430 of file SCR_PlaceableInventoryItemComponent.c.

◆ StopWatchingParentSlots()

void SCR_PlaceableInventoryItemComponent::StopWatchingParentSlots ( )
inlineprotected

Callback method when item is being transfered (f.e. picked up) after it was attached to some object.

Definition at line 438 of file SCR_PlaceableInventoryItemComponent.c.

◆ ValidateEntity()

bool SCR_PlaceableInventoryItemComponent::ValidateEntity ( notnull IEntity entity)
inlineprotected
Parameters
[in]entity
Returns

Definition at line 102 of file SCR_PlaceableInventoryItemComponent.c.

Member Data Documentation

◆ m_bUseTransform

bool SCR_PlaceableInventoryItemComponent::m_bUseTransform = false
protected

Definition at line 13 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_iParentNodeId

int SCR_PlaceableInventoryItemComponent::m_iParentNodeId
protected

Definition at line 16 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_Parent

IEntity SCR_PlaceableInventoryItemComponent::m_Parent
protected

Definition at line 17 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_ParentRplId

RplId SCR_PlaceableInventoryItemComponent::m_ParentRplId = RplId.Invalid()
protected

Definition at line 14 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_PlacingCharacterRplId

RplId SCR_PlaceableInventoryItemComponent::m_PlacingCharacterRplId = RplId.Invalid()
protected

Definition at line 15 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_RootParent

IEntity SCR_PlaceableInventoryItemComponent::m_RootParent
protected

Definition at line 18 of file SCR_PlaceableInventoryItemComponent.c.

◆ m_vMat

vector SCR_PlaceableInventoryItemComponent::m_vMat[4]
protected

Definition at line 12 of file SCR_PlaceableInventoryItemComponent.c.

◆ s_OnPlacementDoneInvoker

ref ScriptInvokerItemPlaced SCR_PlaceableInventoryItemComponent::s_OnPlacementDoneInvoker
staticprotected

Definition at line 20 of file SCR_PlaceableInventoryItemComponent.c.


The documentation for this class was generated from the following file: