Attaching a sound Effect to an idle marker?

Post » Thu Oct 24, 2013 4:52 am

Hi guys,

I'm trying to attach custom flute music to the FlutePlaying Idle Marker when used by NPCs which, used as it is in the CK, seems to be silent.

I've created a sound marker linked to the idle marker and attached the script to the idle marker. Here's what I've tried so far:

EVENT onTriggerEnter (objectReference akActionRef)	if (akActionRef != game.GetPlayer())		ObjectReference MyLink01 = GetLinkedRef()		MyLink01.Enable()	endifendEVENTEVENT onTriggerLeave (objectReference akActionRef)	if (akActionRef != game.GetPlayer())		ObjectReference MyLink01 = GetLinkedRef()		MyLink01.Disable()	endifendEVENT

NPCs do use the idle but the sound never plays.

I'm quite new at scripting though other scripts I've wriiten seem to work but I cannot get this one right. Can anybody give me a hand?

Many thanks in advance :).

Hoamaii

User avatar
Lucy
 
Posts: 3362
Joined: Sun Sep 10, 2006 4:55 am

Return to V - Skyrim