Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

trigger, enable and play sound


DsoS
 Share

Recommended Posts

Looking for a bit more info for this.

I need a light fixture, the light and a sound to play on Player Trigger.

I know it would start something like:

scn MyScriptNameScript


Short Ref

Short Enable


Begin OnTrigger Player


FireFlameRef.Enable

LightRef.Enable


End

I would like to have a sound that plays before or when the Light and Flame turns on.

I would like it to be instant.

I know the script is probably wrong, but that's another reason why I'm asking :evil:

Edited by DsoS_Allimir85
Link to comment
Share on other sites

You only need 'one' (1) enable object, the rest can be set as children of the enabled parent.

You then just enable the one parent object, and all the children will follow suit.

You then use the 'PlaySound' function to play your sound you want.

And you probably only want to do it once, so I added a variable to keep track of that.

scn MyScriptNameScript
short doOnce

Begin OnTrigger Player
if doOnce == 0
FireFlameRef.Enable
PlaySound myFlameStartSound
set doOnce to 1
endif
End[/code]

Link to comment
Share on other sites

You only need 'one' (1) enable object, the rest can be set as children of the enabled parent.

You then just enable the one parent object, and all the children will follow suit.

You then use the 'PlaySound' function to play your sound you want.

And you probably only want to do it once, so I added a variable to keep track of that.

scn MyScriptNameScript

short doOnce


Begin OnTrigger Player

   if doOnce == 0

      FireFlameRef.Enable

      PlaySound myFlameStartSound

      set doOnce to 1

   endif

End

Your awesome willie :evil: Thank you very much now for the hard part, to find a sound file for the flame igniting :nuke:

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...