![]() |
Prioritizing scripts?
Is there a way to control the priority of the interpretation Graal uses to run scripts, specifically weapons? For example, if I have a custom movement system, ideally I would like that weapon to be processed before other weapons, because if it is being run after, say... a custom nickname system, then the names will lag behind the player.
I know there is a way to prioritize the weapons when they're loaded, but I'm not sure if that'd work, and if that itself controls the ones in the list in any way. |
Put the nicknames into ganis~
|
What about the..
weaponorder= serveroption? I assumed that made certain weapons load first and what not. |
Quote:
Same applies to most things when you're dealing with custom movement, for example. If I have custom movement, it'd be nice not to have to worry about other's scripts taking priority and not working correctly. |
Quote:
Prioritizing scripts would be neat but probably hard to do if Graal's using multiple threads (which I'm pretty sure it is). Best way to get around this is calling the function in the movement system after you've moved the player. |
Quote:
|
Oh yea, horrible performance, really :p
|
Use weaponorder= and also add the weapons in the good order on first login. On client-side weapon scripts are executed first.
On Zone it's weaponorder=System,Movement,Tileset, which makes sure that the system and movement scripts are executed before the radar, custom nick name system etc. |
| All times are GMT +2. The time now is 10:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.