Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-09-2002, 02:02 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
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?
Reply With Quote
  #2  
Old 06-09-2002, 02:03 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
resetfocus....
Reply With Quote
  #3  
Old 06-09-2002, 02:07 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Talking

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:46 PM.


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