English Inentityzone cmd doesnt work or wrong method.

1 reply
Goto Page
To the start Previous 1 Next To the start
Up
Mora_rus
User
Offline Off
Hello.
http://www.cs2d.com/help.php?luacat=entity&luacmd=inentityzone#cmd
i'm used to the codes above:
Code:
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
20.01.20 01:53:19 pm
Up
MikuAuahDark
User
Offline Off
Can confirm, cs2d lua cmd inentityzone doesn't work with cs2d entity env_room. Tested this in de_dust2 map (not classic)
Code:
print(inentityzone(3,3,32)) -- false

IMG:https://i.imgur.com/2yI2eh9.png


But it works for cs2d entity info_t as I tested.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
To the start Previous 1 Next To the start