[FIXED 075] Problem in Pawn Command PositionToPlayer

Post any Bug Reports here
Post Reply
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

[FIXED 075] Problem in Pawn Command PositionToPlayer

Post 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...
Last edited by QuestOfDreams on Wed Jul 12, 2006 5:56 pm, edited 2 times in total.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post 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...
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

just as an idea, how about simply making them two commands, keeping the PositionToPlayer, and adding a PositionToPlayerNoRotation?

just a thought.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post 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
Post Reply