Detecting A Level's Tile Def
Hello, I was wondering if there was a function to detect a tileset in a level. This would be much easier with a script I have made. Is there a way to do this? I don't think so, because setting the tileset is done clientside and I would like to somehow detect the level's tileset serverside. It would be useful to have a function like this.
For example PHP Code:
|
You're better off having one system which handles all setting of tiledefs on the server, and simply track which tiledef you set in a variable when the system changes tiledefs.
EDIT: There is no such function afaik. at this moment. |
If you're looking for what I think you're looking for (the tileset type) I believe this will help you:
HTML Code:
TServerLevel.tiletype(float, float) - returns integer |
Quote:
|
Quote:
Edit: nevermind |
It would be useful to have a function that detects which tileset is used in each level, but I can't really do anything about it now.
|
Quote:
|
Quote:
|
Quote:
|
You can do this by storing the tile defs in a client variable, not sure how its managed on izone.
|
gettileset() will return the tileset image currently loaded for the player. I thought there were also ways to get addtiledef2 but I can't find anything.
You may be able to load the tiledefs from the tiledefs/tiledefs<servername>.txt file. |
Not sure if this is the right thread to ask this, but I have this:
PHP Code:
I have it running in a looping timeout, is that possibly why? |
Quote:
Also, you don't need it on a timeout unless you have some other script on that map that would try to change it. Changing it once is enough. The effect will stay active until you restore the alpha back to 1 or change maps. |
Quote:
|
I have:
PHP Code:
|
All times are GMT +2. The time now is 09:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.