![]() |
Fun with tiledefs!
I have a system which loads the tilesets at log on.
However, two levels revert to the previous tileset when you enter.. And then back to the new tileset when you leave them. I tried setting the tileset when you enter the level. It didn't work. I looked through the level (as text) for any tile-modifying scripts. Nothing. I cleared the level's NPCs, incase a putnpc2 was doing it. Nothing. Any ideas? |
is the script a weapon or a level NPC?
|
Yen:
PHP Code:
|
Quote:
I tried to removetildefs() when the player enters and it didn't work. :/ I'd like to remove the NPC causing this, if anyone can think of where it might be. An NPC Weapon loads all tiledefs. There should be no local tiledef scripts. |
A database?
|
I am pretty sure removetiledefs(); isn't a function.
It should just be removetiledefs; (Unsure, I just know that it used to not work and give me an error in F2) |
It works, just not in this case.
|
Unless it's a lag hog, you could call removetiledefs() in a timeout every 5 to 10 seconds. That'll take care of it no problem. :D
Or, when a player enters a level, have it remvoetiledefs() one second after the player enters (20 ticks) |
| All times are GMT +2. The time now is 03:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.