Download

C++ How do I set the rotation of an actor?

I need a little help, the actor I want to set the rotation is that door (it’s a small playground I’m using to help me learn the engine) to about 90 degrees so that it looks fully open. I found this code here

bool SetActorRotation
(
FRotator NewRotation,
ETeleportType Teleport
)

and the documentation says you can use this to instantly set the rotation of an actor, what I want, but how do I use it? Also, can I actually do that if it’s a bool?
I already have a class for it and everything. I have a photo of the bit of code of the class, the highlighted parameter I’m pretty sure crashes my project. Ever since I added that line I can’t click on “Play” without UE crashing, so I don’t want to use that