GetComponentsbyClass

From ARK Modding Wiki
Jump to navigation Jump to search


Replication Important

NoticeIconInactive.png

Must run on server

NoticeIconInactive.png

Should run on server

NoticeIconInactive.png

Must run on client

NoticeIconInactive.png

Should run on client

NoticeIconInactive.png

Requires Multicasting

NoticeIconInactive.png

GetComponentsByClass

How to Use

Returns an array of ActorComponent References that are attached to the Target. Each reference has to be cast to the desired class.

Interesting Use Cases

This can be used to get hold of armour mesh instances that can be edited in real time (e.g. another material can be attached to create various effects).

Related Articles

What Links Here

Inputs
Pin Reference Type Description
Target Actor Actor, in many cases PrimalCharacter
ComponentClass ComponentClass ComponentClass, the class of component you would like to fetch


Outputs
Pin Reference Type Description
Return Value ActorComponent (Array) An array of all components of the given type. Returned as ActorComponent, you need to cast to the desired type.