yust started to look in to the scripts so dont bugg me as this is my first on ever.
but let me know wath you all think of it.
i made it for my own game as i wanted the open and close door to be completely controlled by the player if he have the key (no auto).
the placement of the messages is because of my hud see screenie.
and if you try to open an closed door so will you get an metallic sound.
it only uses the original media that comes with fpsc so anyone can use it.
everything that starts with ; can be removed are only there to make it easy for newbies to understand.
;Artificial Intelligence Script
;Header
desc = locked Door (Open 'With Key' and Close (leaves door open if not closed) )
;Triggers
;load and create text images-----------------------------------------
;if you dont name your hud prompt at the end so can you place it where ever you want on screen--------------
:state=0:hudreset,hudx=50,hudy=79,hudimagefine=gamecore\text\pressentertouse.tga,hudname=usedoor,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=79,hudimagefine=gamecore\text\lockeddoor.tga,hudname=lockeddoor,hudhide=1,hudmake=display,stat
e=10,timerstart
;player do not have key show message---------------------------------
:state=10,plrdistwithin=60,plrhaskey=0:hudreset,hudshow=lockeddoor,hudfadeout=lockeddoor
;player do have key show message-------------------------------------
;door closed---------------------------------------------------------
:state=10,plrdistwithin=60,plrhaskey=1:hudreset,hudshow=usedoor,hudfadeout=usedoor
;door open-----------------------------------------------------------
:state=1,plrdistwithin=60,plrhaskey=1:hudreset,hudshow=usedoor
:state=2,plrdistwithin=60,plrhaskey=1:hudreset,hudshow=usedoor,hudfadeout=usedoor
;play sound if trying to open door without key-----------------------
;timergreater=higher (amount large pause betwen sound) lower (short pause betwen sound)--------control sfx pause------
:state=10,plrdistwithin=60,plrhaskey=0,plrusingaction=1,timergreater=400:plrsound=audiobank\materials\2metalA1.wav,timerstart
;player do have key--------------------------------------------------
:state=10,plrdistwithin=60,plrhaskey=1,plrusingaction=1:state=1,setframe=0,sound=$0
;door open animation-------------------------------------------------
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
;player closing door if open-----------------------------------------
:state=2,plrdistwithin=60,plrusingaction=1:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
AMD ATHLON 1.8 XP WITH AN GEFORCE 4 TITANIUM 4600 (128 MB) AND 256 MB DDRAM (266).