How do I set a lock to the locked out state?

Post » Sat Dec 27, 2014 3:49 pm

I'm attempting to script my sonic screwdriver so that when the player fires it at a locked object, depending on what level the lock is it either gets unlocked or sets it to the locked out state.

There are a few things I need for this to work and I'm thinking of using these:

Event block - OnFire, is this for if a weapon is fired? or will OnActivate work

ObjectUnderReticle - get a reference

GetIsObjectType

GetLocked - will return 0, 1, 2

GetLocklevel

Unlock or (depending on random result)

SetLock - Does such a function exists? How do I set a lock to the locked out stage? Or is there a way for me to force the lock using a function?

User avatar
Kate Schofield
 
Posts: 3556
Joined: Mon Sep 18, 2006 11:58 am

Return to Fallout: New Vegas