Script failed

Post » Tue Sep 22, 2015 6:43 pm

Scriptname note1 extends ObjectReference  Sound Property note1 AutoEvent OnRead()note1.play(Game.GetPlayer())EndEvent

The Creation kit claims the 4,6 is wrong "note1.play(Game.GetPlayer())" this line and the exact wrong code is "Play" not sure why....

Anyone know , im kinda new to this modding tools and script lang

User avatar
Mariana
 
Posts: 3426
Joined: Mon Jun 12, 2006 9:39 pm

Post » Tue Sep 22, 2015 11:19 am

Possibly that your script is named the same as the property.

User avatar
Melanie
 
Posts: 3448
Joined: Tue Dec 26, 2006 4:54 pm

Post » Tue Sep 22, 2015 3:46 pm

Just from looking at the CK, try this...

1) rename your script like AA says... I can only imagine that will cause problems somewhere :/

2) Try using an int ID

Int MySoundInstanceSound Property Note1 AutoActor Property PlayerRef Auto ; I don't think you need this if you're using Game.GetPlayer(), but I use it from habit Event OnRead()MySoundInstance = Note1.Play(PlayerRef)EndEvent
User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Tue Sep 22, 2015 6:52 pm

Also, you want to give your script a name that would be unique to you and your mod. If another modder decided to create a script with the name "note1" then one will overwrite the other. It's best to prefix all your scripts with something (your initials, mod abbreviation, etc). For example, I believe all the dawnguard scripts are typically prefixed with "DLC1_" or something like that.

User avatar
Caroline flitcroft
 
Posts: 3412
Joined: Sat Nov 25, 2006 7:05 am


Return to V - Skyrim