Moving Camera on Request Class
#1

Hey there,

I've recently used Drebin's Camera Editor filterscript to generate a camera movement so I can implement into my script.

The output was as follows:

Код:
InterpolateCameraPos(playerid, 1542.339843, -1676.244384, 30.847208, 1421.688476, -1647.271606, 38.576740, 2000);
InterpolateCameraLookAt(playerid, 1547.319580, -1676.068481, 30.433620, 1418.010864, -1643.885131, 38.490806, 2000);
How can I install that into my script so that the camera only starts moving when you go onto a different class? Because at the moment it moves as soon as you go onto OnPlayerRequestClass and as soon as you press the side arrows...

Adding it into the following:

Код:
switch ( classid )
{
	case 0 .. 6 :
	{


	}
	case 7 .. 8 :
	{

	}
}
Can you please help?

Thanks,

FunnyBear
Reply
#2

Please explain a little more, when you want this to move and when not, I have understand but partially don't want provide wrong info/ code.
Reply
#3

Quote:
Originally Posted by [ND]xXZeusXx.
Посмотреть сообщение
Please explain a little more, when you want this to move and when not, I have understand but partially don't want provide wrong info/ code.
I might have not explained it properly. But here it is again,

When I login I want the camera to be pointing in a certain direction, when you use the arrows and you have changed to the next team, I want the camera to swiftly move to another place. For example, from building to building
Reply
#4

This?
https://sampforum.blast.hk/showthread.php?tid=90880
Reply
#5

Quote:
Originally Posted by [ND]xXZeusXx.
Посмотреть сообщение
No, all that's doing is rotating the camera around the player. I don't want that, I want it to be more like a 'tour type' but on OnPlayerRequestClass
Reply
#6

Anyone?
Reply
#7

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)