// Make it stay open or close
IfSpawned
  KeepAction			//Start at off

//Turn switch when bumped
IfBumped
  SetTargetToWhoeverBumped
  IfTargetCanOpenStuff
    IfTimeOut
      tmpargument = 50
      SetTime
      tmpargument = 0
      PlaySound
      SendMessageNear
      IfStateIs1
        tmpargument = 0
        SetState
        GetContent
        tmpargument = tmpargument + 1
        IssueOrder  
        tmpargument = ACTIONMJ	    //Turn back
        DoAction
      Else		//Unactivated
        tmpargument = 1
        SetState
        GetContent
        tmpargument = tmpargument
        IssueOrder
        tmpargument = ACTIONMG	    //Turn
        DoAction
End				// Finished with this character
