OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Waterman on 28 Mar 2003, 18:17:33
-
_man = _this select 1
["show",_man] exec "LCD_Swiss_Bank.sqs"
["add_remove",_man,20000] exec "LCD_Swiss_Bank.sqs"
_mancash = _mancash - 8000
hintc "The bank has been robbed"
~5
["show",_man] exec "LCD_Swiss_Bank.sqs"
exit
This is a script I'm using when someone robs the bank. All I wanted to know is how do I activate the "alarm" sound in this script. I know it involves the "playsound" command, but I havent used it before. Also the alarm sound would have to go off after a while.
Is it also possible to make the action in the action menu that lets you rob the bank dissapear for X amount of time? ???
Im using this in the init of the bank:
this addaction ["Rob the bank","robbank1.sqs"]
Cheers,
Waterman. :)
-
hmm... maybe this should have gone in the sounds/cutscenes board. ::) Sorry. Move it if you have to Mods... :)
Waterman. :P