Jump to content

What's wrong with this line of script?


antstubell

Recommended Posts

So I compile this script...

 

Float Property DelayAfterLadderPlaced Auto
Message Property GreetMenu Auto
Message Property NeedLadder Auto
Message Property NeedCable Auto
MiscObject Property My_Ladder01 Auto
MiscObject Property My_CableCoiled Auto
ObjectReference Property TrigBox1 Auto
ObjectReference Property LadderStatic Auto
Sound Property LPlace Auto

auto state waiting

EVENT onTriggerEnter(ObjectReference akActionRef)
GotoState("Busy"); prevents re-activation

Int iButton = GreetMenu.Show() ; Shows menu
If 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 == 0
Endif
GotoState("Waiting")
Endevent
EndState

State Busy
Event OnActivate(ObjectReference akActionRef)
;Do Nothing.
EndEvent
EndState

 

… and get the error-

(27,7): argument aksource is not specified and has no default value

If I comment out

 

;LPlace.play()

 

It compiles fine. Why?

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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