Have you ever wanted to be able to shoot a door lock to unlock it, but could never do it? Acually, it's been possible, since v1 at least!
Here's how-
Take an object about the size of the area you want to shoot, I used the scifi "torch" item. Place this item at the height of the door lock, and move it into the lock so it sticks out a little past the knob (so you can still shoot it despite box collision).
Give it this script:
;Artificial Intelligence Script
;Header
desc = door lock
;Triggers
:state=0,shotdamage=1:activateifused=1,destroy
;End of Script
. Set the door name as the "ifused" property of the object.
Give the door this script
;Artificial Intelligence Script
;Header
desc = Key Door (Open 'With Key' and Close)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextlockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=keydoorprompt,hudfadeout=keydoorprompt
:state=10,activated=1:state=5
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistfurther=60:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
:state=5,plrdistwithin=60,plrusingaction=1:setframe=0,sound=$0,state=1
;End of Script
It's simply a modified stock script, I don't even know which one, thank you FPI Editor. So it displays press enter to use rather than that key one
Make sure to have the object set as immoble, and isn't invincible... I just set the health to 1000, it works.
Have fun!
btw add slashes
*slap!*
Quiet yourself, think before posting, and maybe you won't be as ignorant as you seem.