![]() |
clientside > serverside
What is the best / more efficent way of sending data from SERVERSIDE to CLIENTSIDE in a CLASS that is joined by a LOCAL NPC?
|
You can always use attr's which can be read on both the serverside and clientside.
|
Quote:
|
A change in attrs don't give an event though. Depends what you need.
|
Quote:
|
Why not trigger an action on the NPC's shape?
|
Quote:
If you dont need an event, then attrs are the way to go. |
Script in level..
PHP Code:
PHP Code:
I would preffer solving it with actions or something, I'd hate to have to use a timeout and attr's. |
setshape(0, 48, 48); clientside // random numbers
|
Actions "clientside" and "serverside" only work in weapons.
|
I did one using a triggeraction through our main systems weapon.. So basically, I did a triggeraction to the weapon and then made the weapon trigger the other part of the class.
|
Quote:
Also, when you do for(class: this.interaction.modes) it'll join two classes (interaction_shop and interaction_leave) as I see it (dunno if that what it is suppose to do..) And have you tried: PHP Code:
PHP Code:
|
Look, EVERYTHING WORKS PERFECTLY other then to return the data from serverside > clientside. In my knowledge, there has NEVER been possible to trigger any kind of actions from serverside > clientside - and everyone Ive asked about it has confirmed it.
I've settled with attr's for now, untill Stefan gets around and making it possible to send actions from serverside to clientside in local NPCs. |
| All times are GMT +2. The time now is 10:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.