Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   humm stefan you should add this... (https://forums.graalonline.com/forums/showthread.php?t=10591)

KJS 08-28-2001 04:14 AM

humm stefan you should add this...
 
you should add

//#ENDCLIENTSIDE

so meaning like you can do something like

//#CLIENTSIDE
if(playerenters){
//#ENDCLIENTSIDE
this.blah = 3
//#CLIENTSIDE
enabledefmovement;
}


well I have a better example (using setlevel2)..

see you cant use setlevel2 clientside (it wont work unless your on an rc account)....

and I need a way to make it work... that is why I thought of this command...

if anyone knows anyother ways of doing it please tell me

Admins 08-28-2001 09:14 PM

Hmmm this //#CLIENTSIDE line is
for separating the two script parts,
one is sent to the client, while the other
part is executed on the server-side.
For calling server-side parts use triggeraction

KJS 08-28-2001 10:13 PM

Quote:

Originally posted by Stefan
Hmmm this //#CLIENTSIDE line is
for separating the two script parts,
one is sent to the client, while the other
part is executed on the server-side.
For calling server-side parts use triggeraction

yea thanks... I figured that out yesterday with the setlevel2 thing...

BocoC 08-28-2001 10:34 PM

Will creating functions and putting certain functions in the clientside portion and some not work?

KJS 08-28-2001 10:41 PM

nope I dont think you can interact with functions that are clientside and serverside...

as I see stefan saying it when you say //#CLIENTSIDE

anything above it is like its own npc and anything below it is like a different npc...


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

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