16.05.2017, 11:17
https://www.youtube.com/watch?v=ZZ-C_9autXg
So I saw this video of AbyssMorgan
I look at his code and do not know
Why do this, please help me
Code :
Why we need angle-va+90?
So I saw this video of AbyssMorgan
I look at his code and do not know
Why do this, please help me
Code :
PHP код:
stock CompRotationFloat(Float:rotation,&Float:cr){
cr = rotation;
while(cr < 0.0) cr += 360.0;
while(cr >= 360.0) cr -= 360.0;
}
PHP код:
new Float:angle,Float:vax,Float:va;
GetVehicleZAngle(GetPlayerVehicleID(playerid), va);
GetPlayerCameraZAngle(playerid,angle);
CompRotationFloat(angle-va+90,vax);
AttachDynamicObjectToVehicle(alobj,GetPlayerVehicleID(playerid),0.0,0.0,0.1,0.0,0.0,vax);