![]() |
Clientside Sign Detection
I'm suggesting this, not because I think all sign reading should be done clientside, but because I think the player should be able to stop moving when they've encountered a sign--- a sign that they're reading a sign.
Perhaps there could be a fade-in effect for the sign's background to pass the time for the entire sign to load. |
Sign reading is serverside so that translations can work. If you do it clientside then youd have to load up the translations into the client on startup which could possibly take a long time if a server has a full translation (like I think Graal Kingdoms does) Also you can do this sort of thing yourself with testsign()
|
Quote:
x_x |
Yes, testsign(x,y) works clientside
also NPC Code: |
The server doesn't send signs, it's also a way to reduce the data that is sent to the client. The detection for if someone is touching a sign is done on serverside, and the translated text is then sent to the client. On the clientside it is displaying the sign, and you can check with 'if (playerreading)' (or player.reading in new scripting engine) to know if the player is reading a sign.
Normally the lag is not that much that you actually notice a delay between touching and seeing the sign, for a fade-in effect it might be interesting to do your own sign-system. Eventually it should be made easier to fade-in / fade-out GUI controls. |
Quote:
|
| All times are GMT +2. The time now is 01:30 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.