Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Clientside/Serverside in Classes (https://forums.graalonline.com/forums/showthread.php?t=59953)

raiden0899 07-12-2005 09:21 PM

Clientside/Serverside in Classes
 
Is it possible to use clientside and serverside in classes? If it is, how do I use triggeraction to call one of the serverside events?

Bartjuh1992 07-12-2005 11:11 PM

yust use //#CLIENTSIDE

else use nothing
so dont do it with a triggeraction :)

Skyld 07-12-2005 11:25 PM

Quote:

Originally Posted by Bartjuh1992
yust use //#CLIENTSIDE

else use nothing
so dont do it with a triggeraction :)

You did not answer his questions.

Yes, both serverside and clientside are fine in classes.

To triggeraction to the serverside of an NPC, use an actionname starting with "server" (I think that's right, anyway - confirmation or correction, anyone?) and in this case, trigger onto the NPC's position. You might need to give the NPC a shape to trigger onto (use setshape on the serverside of your NPC), though.

Inverness 07-13-2005 12:50 AM

Would be easier if functions could go clientside <-> serverside.

ChibiChibiLuc 07-13-2005 10:35 PM

I'd like that, but I dunno if it's possible to implement. O-o

And remember: If you change the clientside script in a class, it won't take effect unless you update the level.


All times are GMT +2. The time now is 12:17 AM.

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