Attach Object Rotation Vehicle
#1

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 :
PHP код:
stock CompRotationFloat(Float:rotation,&Float:cr){ 
    
cr rotation
    while(
cr 0.0cr += 360.0
    while(
cr >= 360.0cr -= 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); 
Why we need angle-va+90?
Reply


Messages In This Thread
Attach Object Rotation Vehicle - by PhamHoang - 16.05.2017, 11:17
Re: Attach Object Rotation Vehicle - by PhamHoang - 17.05.2017, 03:18
Re: Attach Object Rotation Vehicle - by PhamHoang - 17.05.2017, 09:35
Re: Attach Object Rotation Vehicle - by AbyssMorgan - 17.05.2017, 12:35

Forum Jump:


Users browsing this thread: 2 Guest(s)