Can I get the behavior of an actor by code?

daverave1212

  • Posts: 7
Hello.
How can I get the behavior of an actor (not attributes or functions, but the behavior itself)?
For example, if I have a block for collision event with an actor which has a custom behavior called EnemyBehavior, I want to get that EnemyBehaviorbehavior as an object. The equivalent in unity would be GetComponent<EnemyBehavior>(), which returns the EnemyBehavior behavior of that actor.

How can I do this? Thanks!