[ASK]Death/login/cutscene camera mode
#5

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
you get the player's coordinates, set the camera to a higher altitude (z axys) and set it to face the player. I haven't tested what I did, but it should be something like this:
Код:
forward camtrick();
public OnPlayerDeath(playerid)
{
	 new Float:x, Float:y, Float:z;
	 GetPlayerPos(playerid, x, y, z);
	 SetPlayerCameraPos(playerid, x, y, z+2);
	 SetTimer("camtrick", 2500, false); // Set a timer of 2.5 seconds
}
public camtrick()
{
	SetCameraBehindPlayer(playerid): 
}
Okay, thanks. +REP
I think I must set timer for respawn delay too.
Reply


Messages In This Thread
[ASK]Death/login/cutscene camera mode - by GianYagami - 09.01.2015, 11:05
Re: [ASK]Death/login/cutscene camera mode - by HeLiOn_PrImE - 09.01.2015, 11:38
Re: [ASK]Death/login/cutscene camera mode - by GianYagami - 09.01.2015, 19:30
Re: [ASK]Death/login/cutscene camera mode - by HeLiOn_PrImE - 10.01.2015, 06:51
Re: [ASK]Death/login/cutscene camera mode - by GianYagami - 10.01.2015, 21:32
Re: [ASK]Death/login/cutscene camera mode - by HeLiOn_PrImE - 11.01.2015, 07:04
Re: [ASK]Death/login/cutscene camera mode - by GianYagami - 14.06.2015, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)