Page 1 of 1
[FIXED 075] Problem in Pawn Command PositionToPlayer
Posted: Sun Nov 06, 2005 8:57 pm
by QuestOfDreams
When used with 4 parameters the pawn command PositionToPlayer(...) also sets the pawn's rotation to match the rotation of the player which makes it rather difficult to customize the angles properly. This is for example noticeable when the PositionToPlayer() command is used with the ChangePitch() command in combination with a low pitch_speed.
This is rather a design flaw than a bug, however I'll fix this somehow...
Posted: Sun Nov 06, 2005 9:24 pm
by QuestOfDreams
Ok, I will add another (optional) parameter to the funtion to indicate whether the pawn should be rotated or not. This means that you will eventually have to update your scripts to reflect this change but I think it's worth it...
Posted: Sun Nov 06, 2005 9:55 pm
by AndyCR
just as an idea, how about simply making them two commands, keeping the PositionToPlayer, and adding a PositionToPlayerNoRotation?
just a thought.
Posted: Sun Nov 06, 2005 10:12 pm
by QuestOfDreams
I just saw that PlayerToPosition and PositionToPawn already do it the same way so I'd prefer to change it as I said above...
[Edit]
Updated command in RF0.75