How do I make a sound play once in a script for opening a do

Post » Wed Sep 28, 2011 8:08 am

I have a skill check setup for shooting out a door lock and I can't figure out how to make a gunshot play just the one time, is it possible or am I SOL? :confused:

Thanks guys


Scn NVIntKatzBathDoorScript		int bfixed     ;1=player has repaired the door		int bshowmessage		int ibuttonBegin Onactivate		if bfixed			Activate		else			showmessage NVIntKatzBathDoorMessage01		set bshowmessage to 1	endifEndBegin GameMode		set iButton to GetButtonPressed		if ibutton == 0			return		elseif (ibutton == 1)			set bfixed to 1			showmessage NVIntKatzBathDoorShotOutRewardXP 35 Activate			endif		endif	endifEnd



wolf
User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am

Return to Fallout: New Vegas