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

//Turn switch when bumped
IfBumped
  SetTargetToWhoeverBumped
  IfStateIs0
    IfTargetIsAPlayer
      tmpargument = ACTIONMG	    //Turn
      DoAction
      tmpargument = [OPEN]	//Say open
      tmpdistance = [OPEN]	//To all with [OPEN] IDSZ
      OrderSpecialID
      tmpargument = 1		//Don't do again
      SetState
      tmpdistance = rand & 2670 + 10000
      tmpargument = 0
      PlaySound
      SendMessageNear
End				// Finished with this character
