Forum

> > CS2D > Scripts > entitylist gives back wrong list
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch entitylist gives back wrong list

Keine Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen entitylist gives back wrong list

Edik
User Off Offline

Zitieren
Hello,
1
2
3
4
5
6
7
8
9
10
11
dirdebug = "sys/lua/debug/"
local file = io.open(dirdebug .. "debug.txt","w+")
local text = ""
local list=entitylist()
for _,e in pairs(list) do
	local v = "entity @ ("..e.x..","..e.y..") - "..entity(e.x,e.y,"typename")
	text = text .. tostring(v) .. "\n"
end
text = text:sub(1,-2)
file:write(text)
file:close()

this codes gives back a completely wrong list of entitys. If I open the map in Editor, I cant find the entity at the given coordinates.


Edit.: Solved. Wrong map was starting.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht