How to call a function from another c++ class

Brandon236
Tue, 16 Oct 2018 00:22:49 +0000
Editor Scripting

I haven’t seen alot of tutorials on how to do this. If I have a function in an actor c++ class, how do I call that function from another c++ class? Let’s say I have two actors called MyActor and MyOtherActor. In my header class for MyActor, I defined a pointer to MyOtherActor

UPROPERTY(EditAnywhere)
	AActor* MyOtherActor;

So from that point, how would I call a function from that actor class or do I need to set up a different type of point for function calls?

10 posts - 1 participant