Moving Camera on Request Class - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Moving Camera on Request Class (
/showthread.php?tid=596709)
Moving Camera on Request Class -
FunnyBear - 21.12.2015
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
Re: Moving Camera on Request Class -
Ritzy2K - 21.12.2015
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.
Re: Moving Camera on Request Class -
FunnyBear - 21.12.2015
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
Re: Moving Camera on Request Class -
Ritzy2K - 21.12.2015
This?
https://sampforum.blast.hk/showthread.php?tid=90880
Re: Moving Camera on Request Class -
FunnyBear - 21.12.2015
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
Re: Moving Camera on Request Class -
FunnyBear - 21.12.2015
Anyone?
Re: Moving Camera on Request Class -
FunnyBear - 22.12.2015
Bump