Jump to content

What is wrong with this Script


alexcrazy14

Recommended Posts

scn SparkyElevatorControlPanel

ref door

begin OnActivate

    if IsActionRef Player && GetHasNote SparkyKeycard01 && GetHasNoteSparkyKeycard02 && GetHasNote SparkyKeycard03 && GetHasNoteSparkyKeycard04 && GetHasNoteSparkyKeycard05
                    set door to SparkyElevatorDoor
                    door.Unlock
                    PlaySound UIHackingPassGood


      Elseif IsActionRef Player && GetHasNote SparkyKeycard01 == 0 || GetHasNoteSparkyKeycard02 == 0 ||  GetHasNote SparkyKeycard03 == 0 ||  GetHasNoteSparkyKeycard04 == 0 ||  GetHasNoteSparkyKeycard05 == 0
                    ShowMessage SparkyStorageFail
              
       Endif
                   
                   Activate 

End

So im creating an activator that requires 4 notes (called keycards) to open a locked door. The script will not save which usually means theres something wrong in the script itself. Here it is:

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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