Coordinates of the sight
#3

Almost ready, there is little left, please help
Watch the video, you will understand

https://www.youtube.com/watch?v=DWdZYdq-E0A

PHP код:
    new
        
Float:fPXFloat:fPYFloat:fPZ,
        
Float:fVXFloat:fVYFloat:fVZ,
        
Float:object_xFloat:object_yFloat:object_z
        Float
:zzz;
    const 
Float:fScale 2.75// 2.76;
    
GetPlayerCameraPos(playeridfPXfPYfPZ);
    
GetPlayerCameraFrontVector(playeridfVXfVYfVZ);
    
GetPlayerFacingAngle(playerid,zzz);
    
fVX += floatsin(-zzz+1.5degrees);
    
fVY += floatcos(-zzz+1.5degrees);
    
object_x unoccupiedData[PR_origin][0] + (fVX fScale);
    
object_y unoccupiedData[PR_origin][1] + (fVY fScale);
    
object_z unoccupiedData[PR_origin][2] + (fVZ fScale);
    
CreateObject(2707object_xobject_yobject_z0.0000000,0.0000000,0.0000000100); 
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: 1 Guest(s)