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...

My trigger zone sound plays twice


Witty
 Share

Recommended Posts

Hi Everyone

I have a problem with the script below. I want to place trigger zones throughout my dungeon. Using the script below, when the player enters the trigger zone inside an interior cell it activates the sound...great! For some reason the sound also activates when I enter the interior cell (during the loading screen). How do I stop this?

I load the game from an interior cell, leave and then run across the road to an inn. On entering the inn my trigger zone sound plays (during the loading screen). I then run to the trigger zone in the middle of the room and the sound plays again.

Cheers

Witty

scn aatriggersounddungeon


short doOnce


Begin OnTriggerActor Player


if ( doOnce == 0 )

	playsound aaarcherslodgedungeon1

	set doOnce to 1

endif


End

Edited by WillieSea
Formatted script in code box
Link to comment
Share on other sites

Perform a 'text search' for your sound, "aaarcherslodgedungeon1".

It should only find the sound object, and the one triggerzone script. If there are more, perhaps you have something else in your cell playing the same sound.

If changing to the OnTriggerActor did not help, you might try this instead:

if ( GetActionRef == player ) && ( doOnce == 0 )
playsound aaarcherslodgedungeon1
set doOnce to 1
endif[/code]

Link to comment
Share on other sites

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...