![]() |
level.isnopkzone
How come it isn't set back to false even if I remove noPlayerKilling() from it and even update the level? Tested it one three levels, all gave the same result, and quite frankly it's ****ing things up for me.
If anyone could double check this before Stefan get a chance to reply, it'd be great. Note: Serversided noPlayerKilling(), not clientsided. EDIT: It seems no level vars at all, even manually created ones, doesn't clear when I update level. :oo: |
... anyone? :whatever:
|
Blah blah, triple post etc, but I consider it an importance bump.
It seems restarting the NPC-Server restores all level variables back to default, but shouldn't update level be doing it too? Once again, I'm talking about serversided level data. |
did you manually try setting it to false?
level.isnopkzone = false; save the level, then remove the npc and save the level again. |
Quote:
Saving the level is the same as updating it, if you didn't know. |
i think level.isnopkzone should be unprotected, would make scripting with "no pk zones" much easier..
|
Quote:
|
Quote:
would be logic if they did. i rarely work with level. prefix, but level variables should be cleared when you update level / uploading a new version of the level. |
Updatelevel is reloading the tiles and local npcs, it's not clearing scripting variables. That's similar to updating the script of an npc. You can place an npc in the level that resets the variables in onCreated().
I've modified isnopkzone to be writable, will try to update the npcservers in a few minutes. |
Quote:
|
Quote:
|
Quote:
|
Seems to me like Stefan has no problem doing 99% of the stuff requested, you just have to get him to read it :P
Great addition, will be useful. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 08:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.