/cam system help
#1

I have a few questions regarding a cam system that I'm making....

1) How do I make it so the player can't be seen just floating in the air as he/she currently is.
2) How do I make it so the player can't move / run / turn around in the camera mode?
3) How do I give elevation and angle to the cameras? Currently they are just all on the floor, I'll give you a sample code of what I'm doing (could be completely wrong!)

Код:
case 0:
				{
				SetCameraBehindPlayer(playerid);
				SetPlayerCameraPos(playerid,1540.3452, -1621.5562, 23.1563, 253.1623);
				SetPlayerCameraLookAt(playerid,1540.3452, -1621.5562, 23.1563, 253.1623); //LSPD SPAWN 1
				}
I'm pretty new (as in very new) to scripting so this may come of as a complete noob question (probably is.)
Reply
#2

Код:
case 0:
				{
                                TogglePlayerControllable(playerid,0); // They now cannot move at all. Remember to make it so they can get out of it: TogglePlayerControllable(playerid, 1);
				SetPlayerCameraPos(playerid,1540.3452, -1621.5562, 23.1563, 253.1623);
				SetPlayerCameraLookAt(playerid,1540.3452, -1621.5562, 23.1563, 253.1623); //LSPD SPAWN 1
				}
I removed the Camera behind player stuff as it wasnt needed here, but remember to put it back in after like in the /camoff command.
Set their position under the map, then they wont be seen.
If you want the cameras to be in the air, set it like that on the Y Angle. (second one along)
Reply
#3

How would I be able to find the Y angle? I mean I did /pos (/save) mid-air and it didn't save the Y axis.
And will set the player under the map, thanks for the help so far!
Reply
#4

Quote:
Originally Posted by eRoske
Посмотреть сообщение
How would I be able to find the Y angle? I mean I did /pos (/save) mid-air and it didn't save the Y axis.
And will set the player under the map, thanks for the help so far!
To make the Y Angle higher, you must install a map editor and do it in there. THere is one that actually lets you get a camera angle from it. Heres the link: https://sampforum.blast.hk/showthread.php?tid=282801
Reply
#5

Edit; fixed that - now there's a new problem;
The camera position makes everything low textured....is there a way to fix this?
http://prntscr.com/8ukfs2 - picture
Reply
#6

Quote:
Originally Posted by eRoske
Посмотреть сообщение
Edit; fixed that - now there's a new problem;
The camera position makes everything low textured....is there a way to fix this?
http://prntscr.com/8ukfs2 - picture
Whats happening here is that you have moved the character too far from where you want them to see. Move them closer.
Reply
#7

Ah fixed it! Thanks for the help so far, I think that's all (for now!) ;P
Reply
#8

Quote:
Originally Posted by eRoske
Посмотреть сообщение
Ah fixed it! Thanks for the help so far, I think that's all (for now!) ;P
No problem bro. Feel free to MSG me when you need help.
Reply
#9

Quote:
Originally Posted by OMonger
Посмотреть сообщение
Код:
case 0:
				{
                                TogglePlayerControllable(playerid,0); // They now cannot move at all. Remember to make it so they can get out of it: TogglePlayerControllable(playerid, 1);
				SetPlayerCameraPos(playerid,1540.3452, -1621.5562, 23.1563, 253.1623);
				SetPlayerCameraLookAt(playerid,1540.3452, -1621.5562, 23.1563, 253.1623); //LSPD SPAWN 1
				}
I removed the Camera behind player stuff as it wasnt needed here, but remember to put it back in after like in the /camoff command.
Set their position under the map, then they wont be seen.
If you want the cameras to be in the air, set it like that on the Y Angle. (second one along)
Putting a player under ground just so no one can see him ?
please
just
don't
there is a https://sampwiki.blast.hk/wiki/TogglePlayerSpectating for a reason ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)