I'm at work so this is from the top of my head:
Event OnActivate(ObjectReference akActionRef) Bool DoOnce = 0 If (DoOnce == 0) && (akActionRef == game.getPlayer()) Activate(getLinkedRef()) DoOnce = 1 Else ; do nothing EndIfEndEvent
Double click on your lever reference. In the window that opens, navigate to the "scripts" tab and click on add script. Double click on "[new script]", this should bring up a small window. Give your script a unique name (e.g. "doOnceLeverScript") and confirm that it extends "ObjectReference" then click ok. Now you should be back in the previous window, but this time with your new script mentioned in the list area. Right-click on your script in the list then select "edit source". In the papyrus window that opens, paste the above code below the scriptname line. Now hit ctrl+s, if the compiler doesn't return any errors, then you should be good to go. Now it's just a case of adding your door or whatever as a linked reference of the lever
That "should" work for you. Like I said, I'm not able to get to the CK at the moment. Hopefully somebody else will come along and confirm it for you.
In theory, that script means that only the player can activate the lever this script is attached to and it will only activate the linked reference the first time, any subsequent clicks will do nothing
Let me know how it goes
- Hypno