Camera ground position
#6

Quote:
Originally Posted by vital2k
Посмотреть сообщение
Maybe look in to using a plugin such as MapAndreas
https://sampforum.blast.hk/showthread.php?tid=120013
Quote:
Originally Posted by Meta
Посмотреть сообщение
And you didn't read ...
He wants to find the coordinates of the ground he's LOOKING AT.
pawn Код:
stock Float:DistanceCameraTargetToLocation(Float:CamX, Float:CamY, Float:CamZ, Float:ObjX, Float:ObjY, Float:ObjZ, Float:FrX, Float:FrY, Float:FrZ)
{
    new Float:TGTDistance;

    // get distance from camera to target
    TGTDistance = floatsqroot((CamX - ObjX) * (CamX - ObjX) + (CamY - ObjY) * (CamY - ObjY) + (CamZ - ObjZ) * (CamZ - ObjZ));

    new Float:tmpX, Float:tmpY, Float:tmpZ;

    tmpX = FrX * TGTDistance + CamX;
    tmpY = FrY * TGTDistance + CamY;
    tmpZ = FrZ * TGTDistance + CamZ;

    return floatsqroot((tmpX - ObjX) * (tmpX - ObjX) + (tmpY - ObjY) * (tmpY - ObjY) + (tmpZ - ObjZ) * (tmpZ - ObjZ));
}
I use this for my ExtFire Filterscript ..
Quote:
Originally Posted by [DJ]Boki
Посмотреть сообщение
I find this in 10 sec.

https://sampforum.blast.hk/showthread.php?tid=34207

Looks like you didn't search
Clearly neither of you have read my post correctly. I want a function that will allow me to GET the COORDINATES. Not detect if they are looking somewhere, and not to SET their camera. I want to be able to do (for example) CreateObject(id, camx, camy, camz, ...) like in MTA. I know it wouldn't be perfect like detecting objects but I just want to know if there is a function/script out that does that.
Reply


Messages In This Thread
Camera ground position - by MP2 - 07.04.2011, 15:46
Re: Camera ground position - by [DJ]Boki - 07.04.2011, 15:48
AW: Camera ground position - by Meta - 07.04.2011, 15:59
Re: Camera ground position - by [DJ]Boki - 07.04.2011, 16:01
Re: Camera ground position - by vital2k - 07.04.2011, 16:02
Re: Camera ground position - by MP2 - 07.04.2011, 17:19
Re: Camera ground position - by vital2k - 07.04.2011, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)