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

  1. ;Artificial Intelligence Script
  2.  
  3. ;Header
  4.  
  5. desc          = Use Switch (animated lever)
  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=100:hudshow=useswitchprompt,hudfadeout=useswitchprompt
  11.  
  12. :state=10,plrdistwithin=100,plrusingaction=1:state=1,setframe=0,plrsound=$0,activateifused=1
  13. :state=1:incframe=0
  14. :state=1,frameatend=0:state=2
  15. :state=2,plrusingaction=0:state=3
  16. :state=3,plrdistwithin=100,plrusingaction=1:state=4,plrsound=$1,activateifused=0
  17. :state=4:decframe=0
  18. :state=4,frameatstart=0:state=5,setframe=0
  19. :state=5,plrusingaction=0:state=10
  20.  
  21. ;End of Script
  22.