createobject where the camera is
#1

im trying to make a object create where the camera pos is, pefectly infront of the player, any help?
Reply
#2

Just Download MTA, remember where you /save for the spawn location, and put the object there.
Reply
#3

Quote:
Originally Posted by Georgelopez1
Посмотреть сообщение
Just Download MTA, remember where you /save for the spawn location, and put the object there.
Is that what he asked for? No.

Here pal, maybe this can help you:

pawn Код:
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetPlayerPos(playerid, x, y, a);
    if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    else GetPlayerFacingAngle(playerid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
    return a;
}
It gets you a location in front of the player(the way he is facing)
Reply
#4

thanks, the other dude needs to lrn2read
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)