Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setfocus...? (https://forums.graalonline.com/forums/showthread.php?t=31194)

GrowlZ1010 06-09-2002 02:02 AM

setfocus...?
 
Okay, we all know about the setfocus command, for making the Graal top-down camera look at different co-ordinates. But once you've used it, how do you make it switch back to the normal follow-player cam?

NPC Code:

setfocus players[0].x,players[0].y;



... is the solution I've been told in the past, but all this does is make the camera look at your player and stay locked on to that spot, without following the player around the level. Will I need a:

NPC Code:

if (timeout){
setfocus players[0].x,players[0].y;
timeout = 0.05;
}



to manually bring back the normal camera, or is there an easier way?

Python523 06-09-2002 02:03 AM

resetfocus....

GrowlZ1010 06-09-2002 02:07 AM

Quote:

Originally posted by Python523
resetfocus....
I didn't even know that was a command :o Thank you for that. Now my setfocus scripts will work properly! :D


All times are GMT +2. The time now is 11:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.