OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: VipNatePimp on 24 Sep 2003, 02:08:00

Title: No Reapeated PlaySound
Post by: VipNatePimp on 24 Sep 2003, 02:08:00
I created my own sound and I wanted it to reapeat every 2 seconds (it only 1 second long... a gun fire sound) I wait for 2 seconds for it to play and it does, but then after 2 more seconds nothing happens... what am i doing wrong... heres my trigger pro.

-300 by 300
-Activated: Anybody
-Present
-Reapeatly
-Min:2 Max:2 Mid:2
-Activation: playsound "VeryDistantGuns"

Title: Re:No Reapeated PlaySound
Post by: Captain Winters on 24 Sep 2003, 03:20:03
use this script:

#loop
playSound "Blah"

~2

goto "loop"

it shuld work good  ;D ok i made it its gona work like magik!  :P ::) ;D

Tanks!  8)
Title: Re:No Reapeated PlaySound
Post by: VipNatePimp on 24 Sep 2003, 03:40:30
OK lol... hehe ur never on anymore lol (bigpickle11) lol
anyway thats off the subject......

Thanx
Title: Re:No Reapeated PlaySound
Post by: Knut Erik on 24 Sep 2003, 11:04:46
If you want the sound to stop after a while.. Try this one  ;)

#SoundLoop
Playsound "Blah"
~2
!?Stop : goto "SoundLoop"

EXIT


If you flip the variable "Stop" to true, the sound would stop  :D
Stop = True