Перейти к контенту

Lua help


Daemonion

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

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?

Поделиться этим сообщением


Ссылка на сообщение
  • Недавно просматривали   0 пользователей

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