probleme with get/set actor location
I have somme probleme with GetActorLocation() and SetActorLocation() function. I want to make a rester system in my game.
here is my code : BallBall.h :
If i presse Reset key this dosent work if the ball is in the floor ( wtf ) but " work " if the ball is in the air. I say " work " cuz the ball dont teleport in the right location saved by constructor .
Edit : i understand now, use
in constructor is wrong . i think my bSavePointLocation will be the PlayerStart Location but no its all time (0,0,0). H How i can get PlayerStart location ?
Could you use the BeginPlay() function for that? This should be fired when the Player is spawned and the location should be the PlayerStart. :O
Follow this question
Once you sign in you will be able to subscribe for any updates here