![]() |
Trouble updating level tiles using script..
I'm trying to create a system which allows you to copy a level to your current level so that your level becomes a near exact replica (no NPCs)..
It's been done before, but It's good practice. Anyways, I'm having a problem with the tiles resetting back to the normal tiles after a few minutes. The level is by default a level of all grass. When I copy a level, It'll update the board for a few minutes then pop back to all grass. Wondering what's causing this. NPC Code: This may not be the best or most efficient way of doing it, but I'm still learning, so if you know a better way It'd also be appreiciated if you could point me in the right direction. Thanks :D |
technically, your best bet is to do it all clientside. the only purpose to you doing it all serverside is so that others see it, if you're creating a spy level make it clientside.
I made one serverside for Era, I'll post the script when I find it ^^ |
Quote:
Much more useful to have it serverside from the beginning instead of needing each person to set it to the right level or such. |
Quote:
|
Quote:
Edit: Tried it clientside, it still does the same thing. I also tried using updateboard2 and it STILL changes back to grass. |
try level.tilelayers[0].tiles[x,y] instead of just tiles[x,y].
I don't know if it will help but it seemed to help me. |
All fixed. The finished product is a level NPC that just copies the level and takes the attributes of the players in the level and echoes them to RC..
Probably not the most efficient or easy, but it works: NPC Code: If there's anything I can improve on or so more easily than what I have here, It's appreiciated if you could shout it out so I know next time. |
| All times are GMT +2. The time now is 01:41 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.