![]() |
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?
|
yust use //#CLIENTSIDE
else use nothing so dont do it with a triggeraction :) |
Quote:
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. |
Would be easier if functions could go clientside <-> serverside.
|
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.