How can I fit the object position next to the player
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
PHP код:
new Float:pos[3], Float:A;
GetPlayerFacingAngle(playeridA);
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
SetObjectPos(StretcherObj[playerid], pos[0] - floatcos(Adegrees), pos[1] - floatsin(Adegrees), pos[2]-0.50);
SetObjectRot(StretcherObj[playerid], 0.000.00A); 
That would place the stretcher 1 meter left from the player
Works nice, two things

1. How can I reduce the lag ? I mean make it move faster and not to shake every step I do
2. Can you explain what you have changed ? I'm still supposed to learn something at all
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)