The reason that you couldn't get it in front of the player is because '+ 20' does not get affected by player rotation.
Try searching for vec_for_angle in the manual and see if you can figure out .

For your other problem, I can't read your script from here, so I have no clue .


Click and join the 3dgs irc community!
Room: #3dgs