Skip to content
User Avatar
#3817
Auto-translated
Let me point out the exact error right away. When you assign the return value of the GetObjectPosition function to crearure_positions[k], the corresponding element becomes a number instead of a table of three elements. Therefore, you need to do this again: creature_positions[k][1], creature_positions[k][2], creature_positions[k][3] = GetObjectPosition(monster).
And in the IsTilePassable check, you first need to save the corresponding elements of the table in local x, y, and z, and then pass them to IsTilePassable.
And it is precisely because of this that the error "attempt to index a number" occurs. After all, creature[k] is just a number.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________