Forum

> > CS2D > Maps/Editor > Inentityzone cmd doesnt work or wrong method.
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Inentityzone cmd doesnt work or wrong method.

1 reply
To the start Previous 1 Next To the start

old Inentityzone cmd doesnt work or wrong method.

Mora
User On Online

Quote
Hello.
http://www.cs2d.com/help.php?luacat=entity&luacmd=inentityzone#cmd
i'm used to the codes above:
1
2
3
4
5
local check_x = player(id,"tilex")
	local check_y = player(id,"tiley")
	if inentityzone(check_x, check_y, "Env_Room") then
	  msg("Working")
	end
used also number of Env_Room in the map editor:
inentityzone(check_x, check_y, 33)

used also number of Env_Room in the map editor if we count first entity from 0:
inentityzone(check_x, check_y,32)

used also the 8-th number as with the cs2d lua cmd inentityzone by the list
inentityzone(check_x, check_y, 8)

What did i do wrong?
Well, the 32 method is working, but is only show me "Working" message only when i step exactly on the ENTITY PLACEMENT position, but not it's area and working it on ALL entities.
/LMAO i edited post like 5 times and still cannot recognize how does it work, ee
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview