I want my character to fly in a specific way
so i want my character to fly and this is what i have so far this makes him jump and takes him in and out of flying mode which is a good start but i want him to fly in the direction of the camera if i hold W and i want him to be able to go up with space and down with shift if he is in the air can someone please help?
asked Jun 15 '18 at 03:16 AM in Blueprint Scripting
Simplest version is get the pawn's camera, get Forward Vector of that, multiply the forward vector by the number of unreal units you want to move forward per tick and then SetActorLocation to current location plus that vector you just calculated.
For space bar rising straight up motion, then you can map an input axis of positive 1.0 to the space bar, make an input axis event for that, multiply the input axis value by the number of unreal units you want to go straight up per tick, plug that into the Z of a makeVector node then setActorLocation to the current location plus that vector you made.
answered Jun 15 '18 at 03:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here