27.09.2011, 16:45
Well I think my sentence was well explained.
I am trying to look for a function that gets the X, Y and Z where the Camera of the player is looking at.
I have heard something of GetPlayerCameraFrontVector, though that doesnt work somehow:
if(PRESSEDbutton(KEY_FIRE))
{
new Floatje, Float:yje, Float:zje;
GetPlayerCameraPos(playerid, xje, yje, zje);
GetPlayerCameraFrontVector(playerid, xje, yje, zje);
CreateExplosion(xje, yje, zje, 0, 10);
}
I am trying to look for a function that gets the X, Y and Z where the Camera of the player is looking at.
I have heard something of GetPlayerCameraFrontVector, though that doesnt work somehow:
if(PRESSEDbutton(KEY_FIRE))
{
new Floatje, Float:yje, Float:zje;
GetPlayerCameraPos(playerid, xje, yje, zje);
GetPlayerCameraFrontVector(playerid, xje, yje, zje);
CreateExplosion(xje, yje, zje, 0, 10);
}