antstubell Posted September 28, 2019 Share Posted September 28, 2019 So I compile this script... Float Property DelayAfterLadderPlaced AutoMessage Property GreetMenu AutoMessage Property NeedLadder AutoMessage Property NeedCable AutoMiscObject Property My_Ladder01 AutoMiscObject Property My_CableCoiled AutoObjectReference Property TrigBox1 AutoObjectReference Property LadderStatic AutoSound Property LPlace Autoauto state waitingEVENT onTriggerEnter(ObjectReference akActionRef)GotoState("Busy"); prevents re-activationInt iButton = GreetMenu.Show() ; Shows menuIf iButton == 1 && (Game.GetPlayer().GetItemCount(My_Ladder01) < 1)NeedLadder.show()ElseIf iButton == 1 && (Game.GetPlayer().GetItemCount(My_CableCoiled) < 1)NeedCable.show()ElseIf iButton == 1 && (Game.GetPlayer().GetItemCount(My_CableCoiled) > 0) && (Game.GetPlayer().GetItemCount(My_Ladder01) > 0)LadderStatic.enable()LPlace.play()Utility.wait(DelayAfterLadderPlaced)TrigBox1.enable()ElseIf iButton == 0EndifGotoState("Waiting")EndeventEndStateState BusyEvent OnActivate(ObjectReference akActionRef);Do Nothing.EndEventEndState … and get the error-(27,7): argument aksource is not specified and has no default valueIf I comment out ;LPlace.play() It compiles fine. Why? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted September 29, 2019 Share Posted September 29, 2019 Because Play requires an object reference for the sound to come from. That parameter variable is called akSource. Thus when trying to compile without something there papyrus complains. Link to comment Share on other sites More sharing options...
antstubell Posted September 29, 2019 Author Share Posted September 29, 2019 @IsharaMeradin.You know what I flipping know this and couldn't damn well see it.This is what happens after hours of scripting. SCRIPTBLINDNESS. Link to comment Share on other sites More sharing options...
Recommended Posts