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 02-29-2004, 08:10 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
testsign

Any reason why this isn't working online?

NPC Code:
//#CLIENTSIDE
if (created) {
timeout = 0.05;
}

if (timeout) {
this.s = testsign(mousex,mousey);
if (this.s >= 0) setplayerprop #c,Sign: #v(this.s);
timeout = 0.05;
}



It runs fine offline, but online it never returns a sign.
Reply With Quote
  #2  
Old 02-29-2004, 09:55 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Signs may be handled serverside. It does not make much sense but there is some lag when touching them before the text appears, no?
Reply With Quote
  #3  
Old 02-29-2004, 10:47 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally posted by Loriel
Signs may be handled serverside. It does not make much sense but there is some lag when touching them before the text appears, no?
Possibly, but I'd assume since its stored in the level and the level is transfered to the client it would be handled clientside as well.

Edit:
Serverside always returns 0
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 08:34 PM.


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