Coordinates of the sight
#2

Tried to, already close, but would still not accurately

PHP код:
    new
        
Float:fPXFloat:fPYFloat:fPZ,
        
Float:fVXFloat:fVYFloat:fVZ,
        
Float:object_z,Float:zzz;
    const
        
Float:disttt 2.75;
    
GetPlayerCameraPos(playeridfPXfPYfPZ);
    
GetPlayerCameraFrontVector(playeridfVXfVYfVZ);
    
GetPlayerFacingAngle(playerid,zzz);
    
object_z fPZ floatmul(fVZdisttt);
    
CreateObject(2707fPX+disttt*-floatsin(zzz,degrees), fPY+disttt*floatcos(zzz,degrees), object_z+0.140.0000000,0.0000000,0.0000000100); // my origin
    
CreateObject(2707unoccupiedData[PR_origin][0],unoccupiedData[PR_origin][1],unoccupiedData[PR_origin][2], 0.0000000,0.0000000,0.0000000100); // origin 
Reply


Messages In This Thread
Coordinates of the sight - by nikjda - 25.03.2019, 21:57
Re: Coordinates of the sight - by nikjda - 25.03.2019, 22:00
Re: Coordinates of the sight - by nikjda - 26.03.2019, 21:33
Re: Coordinates of the sight - by Pottus - 26.03.2019, 23:17
Re: Coordinates of the sight - by nikjda - 27.03.2019, 12:11
Re: Coordinates of the sight - by nikjda - 27.03.2019, 23:24
Re: Coordinates of the sight - by Pottus - 28.03.2019, 01:46
Re: Coordinates of the sight - by nikjda - 28.03.2019, 17:48
Re: Coordinates of the sight - by nikjda - 28.03.2019, 17:58
Re: Coordinates of the sight - by nikjda - 30.03.2019, 23:11
Re: Coordinates of the sight - by Pottus - 31.03.2019, 17:50
Re: Coordinates of the sight - by Nero_3D - 31.03.2019, 21:36

Forum Jump:


Users browsing this thread: 3 Guest(s)