Tiziano74 Posted May 14 Share Posted May 14 (edited) Hi I made a custom bard in a custom home The bard has all his factions, his linked ref BardPlaySpot xMarkerheading and his Default Sandbox package near the linked BardPlaySpot The home's location has the LocTypeInn Editor ID But the bard dsn't play anything, he sings only if the player ask him to play a specific song by dialogue So i'm trying to make a script inside a trigger, to force the bard to play something when the player enter the trigger, but it dsn't work Quest Property BardSongs Auto Actor Property Bard Auto Event OnTriggerEnter(ObjectReference akActionRef) If akActionRef == Game.GetPlayer() Actor akSpeaker = Bard as Actor (GetOwningQuest() as BardSongsScript).PlaySongRequest(Akspeaker,"Any") EndIf EndEvent Anyone has any idea to solve it? Thanks in advance for the answers Edited May 14 by Tiziano74 Link to comment Share on other sites More sharing options...
scorrp10 Posted May 14 Share Posted May 14 Umm... this script extends what class and is attached to... what exactly? As you call GetOwningQuest(), I assume this trigger area is loaded into an alias on some quest, and this script extends ReferenceAlias. That said, why are you invoking PlaySongRequest on owning quest? If anything, instead of (GetOwningQuest() as BardSongsScript).PlaySongRequest(Akspeaker,"Any") You should have (BardSongs as BardSongsScript).PlaySongRequest(Akspeaker,"Any") Link to comment Share on other sites More sharing options...
Recommended Posts