When i try to run a weapon detector script in my map, it doesn't work. it has the same name as my map, and it's in maps folder aswell.
Soushi made this script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--Scanner location, input in tile format! tilex = 119 tiley = 137 --Enter your mapname here mapName = 'zAzz_Jail' addhook("movetile","movetile_hook") function movetile_hook(id ,playerx ,playery) if map("name") == mapName then if tilex == playerx and tiley == playery then local weapons = playerweapons(id) if #weapons > 1 then parse('trigger "hasWeapons"') else parse('trigger "hasNoWeapons"') end end end end
It doesn't trigger the sound when i step in the tile.
All this kind of scripts aren't working in my map
What the hell is the problem?
Luamap is enabled
Other maps have the same scripts and they work.
But no one seems to work in my map..