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?