Jump to content

NOTICE: The new site is now moved to the original www.loverslab.com URL. The site may be up and down during this transition and there is still some tweaks and setup going on, so you may experience the occasional broken link, visual oddity, and other such errors. 

If you notice anything any particular that's broken or have any suggestions or comments, please post them in the following thread: http://www.loverslab.com/topic/87535-new-site-questions-comments-and-suggestions/

The old site will remain accessible for the next week via the URL http://old.loverslab.com

Sign in to follow this  
ger4

Sound activaor Camera script

Recommended Posts

This should be simple, but I can' work out how to do it. The film projector sound for the camera starts ok when I activate the object, but when I activate it again, i will not switch off.

 

Any suggestions would be much appreciated.

 

 

scn AAAOldCameraScript
 
short doonce
 
ref camera
 
string_var soundstring
 
Begin onActivate
set camera to GetSelf
let soundstring := $AAACameraFilm
 
if eval ((camera.GetSoundPlaying $soundstring))
camera.SetLoopSound AMBDripLP01
camera.Update3D
else
;set camera to GetSelf
;AAAOldCameraAct.SetLoopSound AAACameraFilm
camera.SetLoopSound AAACameraFilm
camera.Update3D
endif
 
 
 
end

Share this post


Link to post

Would not it be easier  just to turn on and off the  sound source ( camera- switcher and  the sound source as object )?

 

25b0bc372631c2a460be2edc37235898.jpg

 

scn CAMERAscript

 

begin onactivate

if soundREF.GetDistance CAMERA>11111 ; the start dummy cell for soundREFs

soundREF.DISABLE

endif

 

if soundREF.GetDisabled==1

 

 

soundREF.moveto CAMERA

soundREF.ENABLE

 

 

else

soundREF.DISABLE

endif

 

 

ACTIVATE

end

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×