Graal Forums

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

Riot 02-29-2004 08:10 PM

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.

Loriel 02-29-2004 09:55 PM

Signs may be handled serverside. It does not make much sense but there is some lag when touching them before the text appears, no?

Riot 02-29-2004 10:47 PM

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


All times are GMT +2. The time now is 08:44 PM.

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