[Help] New GetXYZInFrontOfPlayer
#1

A New GetXYZInFrontOfPlayer?

Exist a Function similar at this for Get NOT the Front Point Central of Player, but a little Side (Right / Left) ?

Код:
forward GetXYZInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, Float:distance);
public GetXYZInFrontOfPlayer(playerid, &Float:x, &Float:y, &Float:z, Float:distance) {
new Float:a; GetPlayerFacingAngle(playerid, a);
GetPlayerVelocity(playerid, x, y, z);
if (GetPlayerVehicleID(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees)); }
Reply


Messages In This Thread
[Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 17:22
Re: [Help] New GetXYZInFrontOfPlayer - by Grim_ - 24.10.2010, 17:25
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 17:37
Re: [Help] New GetXYZInFrontOfPlayer - by Mauzen - 24.10.2010, 18:48
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 19:00
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 19:55
Re: [Help] New GetXYZInFrontOfPlayer - by Hiddos - 24.10.2010, 20:01
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 20:37
Re: [Help] New GetXYZInFrontOfPlayer - by Bogdanovic - 24.10.2010, 20:54
Re: [Help] New GetXYZInFrontOfPlayer - by Mauzen - 24.10.2010, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)