English Env_sound and Trigger_If

4 replies
Goto Page
To the start Previous 1 Next To the start
26.04.18 11:58:33 am
Up
Quattro
User
Offline Off
Hello, I'm noob with lua and I don't knw if this is really bug but Env_sound and Trigger_If doesn't work for me


I tried trigger_if, chose from list "if round time is less than 55" and it does nothing. Then I bypassed it by making trigger_start and trigger_delay to achieve same goal and it worked.


enc_sound doesn't play no matter what I use, I have't been able to play sound at all

Please help
26.04.18 01:45:06 pm
Up
Cure Pikachu
User
Offline Off
First off, is your cs2d cmd mp_luamap set to 1? (Never mind, silly me)
And regarding cs2d entity env_sound, is the audio file in question in usable condition?
Just wanted to rule some things out first.
edited 1×, last 30.04.18 03:45:04 pm
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
30.04.18 01:24:23 pm
Up
Quattro
User
Offline Off
env_sound works correctly, I remembered that I disabled map sounds in options.

The only thing which doesn't work is trigger_if
Try it
30.04.18 03:44:24 pm
Up
Cure Pikachu
User
Offline Off
When I think about it, have you tried triggering the cs2d entity trigger_if every second using a trigger loop (cs2d entity trigger_delay)? Then whatever that trigger_if entity triggers, make it go through a cs2d entity trigger_once first.
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
30.04.18 10:43:13 pm
Up
Quattro
User
Offline Off
@user Cure Pikachu:
Thanks man, it is as you say:

To make it work you must first make the main trigger, triggerstart for example. Then it directs to triggerdelay, that directs to triggerif after some time and then it passes it(or not) and triggers what you need.
To the start Previous 1 Next To the start