View Single Post
  #3  
Old 01-23-2006, 02:23 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
I think Rick means that the setview command would change the resetfocus coordinates. For example:
NPC Code:

//#CLIENTSIDE
function onCreated() {
setfocus(5,5); //would change the view to coordinates (5,5)
resetfocus(); // would change the view back to the player
setview(20,20); // would change resetfocus coordinates to (20,20)
setfocus(5,5); // change view to coordinates (5,5) again
resetfocus(); // this time it would change view to 20,20 as opposed to player coordinates
resetview(); // and resetview to change the coordinates setview() has set back to player coordinates.
}

__________________