Interior entarance?
#1

How to make the camera be like in single-player while the player entering house?

(the camera going above the head and the screen becoming black..,
here you can see what im meaning. http://*********/IslQH2xB71o?t=8m29s ..

So please help me with ideas or make code for this
Reply
#2

Try to use: SetCameraBehindPlayer, TogglePlayerControllable and create a black Textdraw.
Reply
#3

what about the camera angle? i should use sin-cos to get the correct Position?
Reply
#4

SetCameraBehindPlayer set the correct angle.
Reply
#5



Uploaded with ImageShack.us

Here is what im meaning, using SetCameraBehindPlayer won't help me..

Getting player facing angle is possible
and X,Y defined already (distance between points)
so possible to find the camera XY, but i dont know how to use

floatsin and floatcos or tan... w/e.

this will work?

#define Distance 1.5
#define deg (180.0 + 20.0)
CameraCoords(playerid, &Float, &Float:y)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (Distance * floatsin(-a + deg, degrees));
y += (Distance * floatcos(-a + deg, degrees));
}
Reply
#6

https://sampforum.blast.hk/showthread.php?pid=1460626#pid1460626
Reply
#7

Thank you, but its not completly 1 by 1 as Single cuz the Camera angles when entering to house.
Im trying to make camera like in single
Reply
#8

The default and easy way is to remove DisableInteriorEnterExits(); from under OnGameModeInit, if you have it.

This way all houses will have the yellow arrow at the door and do the camera thing you want it to do.
Reply
#9

Yes but i want to use this enterance also for bussiness or houses that i've added.
Reply
#10

Up.. somebody may help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)