Lua help - AMK English Version - AMK Team
Перейти к контенту

Lua help


Рекомендуемые сообщения

I wrote this code and am having one problem with it.

 

I have placed several space restrictors (using the level editor) so that, when the player walks into them, a sound is played. When they leave the space restrictor, the sound stops.

 

However, the sounds are repeating from the beginning every one second or so. I think the code is maybe checking to see if the player is inside the zone every 1 second, and repeats the sound each time from the beginning. Maybe I need to set up something where when the player enters a zone, the game stops checking to see if the player is in the zone?

Ссылка на комментарий
https://www.amk-team.ru/forum/topic/12342-lua-help/

Создайте аккаунт или авторизуйтесь, чтобы оставить комментарий

Комментарии могут оставлять только зарегистрированные пользователи

Создать аккаунт

Зарегистрировать новый аккаунт в нашем сообществе. Это несложно!

Зарегистрировать новый аккаунт

Войти

Есть аккаунт? Войти.

Войти
  • Недавно просматривали   0 пользователей

    • Ни один зарегистрированный пользователь не просматривает эту страницу.
×
×
  • Создать...