SpawnActor just returns a AActor so we need to cast it to your arrow class using (AProjectileArrow*) in front of the term, then we get the class of it using ::StaticClass(), and yourLocation is basicially a FVector with the location you want to spawn it in. See the argument list and extend it to your needs!
Hope that helped!
Hey thanks for the help. That does work however if I have the “AProjectileArrow* spawnedArrow” variable declared in AVR_PlayerChaperone header and the VS debugger says the object is nullptr even though it still spawns the arrow and lets me get variables that I’ve declared in my ProjectileArrow class. Any idea on why that is?
I never really debugged with VS, but it shouldn’t be the case that VS indicated it as a nullptr… Sorry, can’t help you there, but if my answer helped anyway, I’d be glad if you mark it as the solution