Posted: 13th Aug 2008 01:04
hmmmm.... this is frustrating me allot
whenever i try to give an entity a custom
script i never shows that its even there.
Example: I was trying to give a switch and
differant script so you had to enter a key code
but when i browse to try to find it its not there!
i made it a .fpi file and made sure everything was right.
heres the script
;Artificial Intelligence Script
; by xplosys
;INSTRUCTIONS
; In the lines state=10 through state=13
; change the scancodekeypressed=X value
; to change the access code.
;
; The code is only required to open and
; not to close. For instance, if used to
; open a door, the access code will open
; the door and the enter key will close
; it again.
;Header
desc = Switch Activate (enter pass code)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\enteraccesscode.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=50,scancodekeypressed=79:state=11,sound=audiobank\switches\press.wav
:state=11,plrdistwithin=50,scancodekeypressed=80:state=12,sound=audiobank\switches\press.wav
:state=12,plrdistwithin=50,scancodekeypressed=81:state=13,sound=audiobank\switches\press.wav
:state=13,plrdistwithin=50,scancodekeypressed=75:state=14,sound=audiobank\switches\press.wav
:state=14:state=1,plrsound=$0,activateifused=1,alttexture=1
:state=1,plrusingaction=0:state=2
:state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10
;End of Script
any ideas why its not recognizing custom scripts?