Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AttachmentSlotComponent Interface Reference
Inheritance diagram for AttachmentSlotComponent:
[legend]

Public Member Functions

proto external void SetAttachment (IEntity attachmentEntity)
 
proto external IEntity GetAttachedEntity ()
 
proto external BaseAttachmentType GetAttachmentSlotType ()
 
proto external bool CanSetAttachment (IEntity attachmentEntity)
 Is entity compatible to be attached to this slot?
 
proto external bool IsObstructing ()
 Does this slot obstruct others? This is for example relevant if an optic slot obstructs the weapons iron sights (either built-in or attached).
 
proto external bool ShouldShowInInspection ()
 Is this slot should show during inspection.
 
bool ShouldSetAttachment (IEntity attachmentEntity)
 
bool ShouldSetResource (Resource resource)
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Member Function Documentation

◆ CanSetAttachment()

proto external bool AttachmentSlotComponent.CanSetAttachment ( IEntity  attachmentEntity)

Is entity compatible to be attached to this slot?

◆ GetAttachedEntity()

proto external IEntity AttachmentSlotComponent.GetAttachedEntity ( )

◆ GetAttachmentSlotType()

proto external BaseAttachmentType AttachmentSlotComponent.GetAttachmentSlotType ( )

◆ IsObstructing()

proto external bool AttachmentSlotComponent.IsObstructing ( )

Does this slot obstruct others? This is for example relevant if an optic slot obstructs the weapons iron sights (either built-in or attached).

Example: PSO-1 scope on AK pattern rifles, or the P90 tri-rail are not obstructed by mounting an optic, while most M4-type rifles are.

◆ SetAttachment()

proto external void AttachmentSlotComponent.SetAttachment ( IEntity  attachmentEntity)

◆ ShouldSetAttachment()

bool AttachmentSlotComponent.ShouldSetAttachment ( IEntity  attachmentEntity)

◆ ShouldSetResource()

bool AttachmentSlotComponent.ShouldSetResource ( Resource  resource)

◆ ShouldShowInInspection()

proto external bool AttachmentSlotComponent.ShouldShowInInspection ( )

Is this slot should show during inspection.


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