Hello i got problem:
There is part of script:
How t change it?
I want to SummonCreature in free (walkable) title.
Code:
[4:54:20.857] [Error - GlobalEvent Interface]
[4:54:20.857] In a timer event called from:
[4:54:20.857] data/globalevents/scripts/event.lua:onTime
[4:54:20.857] Description:
[4:54:20.857] data/globalevents/scripts/event.lua:75: attempt to call global 'isWalkable' (a nil value)
[4:54:20.857] stack traceback:
[4:54:20.857] data/globalevents/scripts/event.lua:75: in function <data/globalevents/scripts/event.lua:72>
There is part of script:
LUA:
fromPosition = {x = 341, y = 465, z = 7}, -- top left cornor of the playground
toPosition = {x = 424, y = 520, z = 7}, -- bottom right cornor of the playground
pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)}
if isWalkable(pos, true, true, true) then
doSummonCreature(config.zombieName, pos)
doSendMagicEffect(pos, CONST_ME_MORTAREA)
end
How t change it?
I want to SummonCreature in free (walkable) title.