home *** CD-ROM | disk | FTP | other *** search
/ PC Advisor 2006 January / PCA126_DVD.iso / TRIAL / FPSCreator / Files / scriptbank / switch2.fpi < prev    next >
Encoding:
Text File  |  2005-08-02  |  605 b   |  18 lines

  1. ;Artificial Intelligence Script
  2.  
  3. ;Header
  4.  
  5. desc          = Switch Activate (toggle on and off)
  6.  
  7. ;Triggers
  8.  
  9. :state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
  10. :plrdistwithin=25:hudshow=useswitchprompt,hudfadeout=useswitchprompt
  11.  
  12. :state=10,plrdistwithin=25,plrusingaction=1:state=1,plrsound=$0,activateifused=1,alttexture=1
  13. :state=1,plrusingaction=0:state=2
  14. :state=2,plrdistwithin=25,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
  15. :state=3,plrusingaction=0:state=10
  16.  
  17. ;End of Script
  18.