![]() |
Getting Information Clientside
Ok now whats a good way to give information of a putnpc2 from serverside to clientside?
are save[]'s still limited to 255? if so is there any other good way? |
It'd be nice to be able to transfer information between client and server with classes.... You can probably store the npc's number and then have a triggeraction in the weapon that placed said class to clientside telling it to find x npc and set whatever you need to though.
|
I do believe save[]'s are limited to integers greater than or equal to 0 and less than or equal to 220.
|
how about just making onActionClientSide for localnpcs(putnpcs2/putnpcs)
|
PHP Code:
I'm not sure if you can use npc.trigger() or npc.triggerclient() or something to trigger to clientside or not. |
Quote:
|
Also, if you set this.attr values serverside, they can be read clientside (won't work vice versa though).
|
yeah i used attr[20]
lol |
yea, I wish I knew how triggerclient and triggerserver worked for this kindof NPC. I don't know if they'd work for regular NPCs, (but it would be a very very good idea.
|
Quote:
|
Quote:
npc-->npc name? would that mean the first string is the type of object the action is pointing to? I'd rather just pass it any object. |
Quote:
|
| All times are GMT +2. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.