AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   If a one sound is reproduce once, no more reproduced? (https://forums.alliedmods.net/showthread.php?t=257072)

kam3n1tza 01-29-2015 09:28

If a one sound is reproduce once, no more reproduced?
 
Is it possible to check if a one sound is reproduce once, no more reproduced?
I create set_task, which is repeated in 1 sec, and the sound is 3 sec., but because task repeat the sound again and again only the first word was able to speak...

Flick3rR 01-29-2015 09:46

Re: If a one sound is reproduce once, no more reproduced?
 
Set a bool to 'true', when the sound is played for the first time and then check for the bool and don't play the sound if it's 'true'.

HamletEagle 01-29-2015 10:04

Re: If a one sound is reproduce once, no more reproduced?
 
Lol, simply set the task at 3.0 seconds.


All times are GMT -4. The time now is 22:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.