Jump to content

Adding sound effect to Armor Chameleon Effect.


pvpxan

Recommended Posts

So I have been recently working on a Stealth Armor mod and I am getting totally lost in this new creation kit. This was very easy for me in New Vegas, but it seems like nothing works as it appears here. The following photo is what I have tried. I have plugged my sound into different sound things by choosing it from the drop down boxes and no luck.

 

 

http://i.imgur.com/uzA3xMj.png

 

 

If I wanted to script this, how would I do that as it seems scripting in FO4 is totally different than FNV and I am having trouble finding good documentation on syntax and functions. I usually learn best by example sadly.
ScriptName xan_Play_Sound_Effect extends ObjectReference
Actor myActor
Event OnActivate(xan_Nano_NightVision_Effect akActivator)
myActor = akActor
If(myActor == Game.GetPlayer())
xan_Stealth_Sound.Play(myActor)
EndIf
EndEvent
I know this above script will not work, but I am really lost as to what to do and any help would be appreciate.
Edited by pvpxan
Link to comment
Share on other sites

If you look at the script that's already attached to the magic effect for the chameleon mod, you'll see how to pretty simply structure something to just play a sound when the effect happens:

Scriptname SpellEffectImodPlayerOnly extends ActiveMagicEffect
{Plays the selected Imod on begin effect}

ImageSpaceModifier Property myImod Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == Game.GetPlayer()
		myImod.Apply()
	endif
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...