Thread: Reset Tiledefs
View Single Post
  #2  
Old 07-29-2010, 06:16 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
Due to Zodiac's old tiledef system being completely inefficient, it made a complete mess of the file. So I wrote this function to clean it.

PHP Code:
//#CLIENTSIDE

function resetTileDefs() {
  
temp.tiledefs.loadlines("levels/tiledefs/tiledefs" getservername() @ ".txt");
  for (
temp.tiledeftemp.tiledefs) {
    
temp.lvl temp.tiledef[1];
    
removetiledefs(temp.lvl);
  }

I'm pretty sure this is your entire script:

removetiledefs("");
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote