Alright, I need some help. I've tried for a good amount of time but I can't get this to work properly.
;Artificial Intelligence Script
;Header
desc = paperscript (lets the player view a hud when close to model)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\papernotes\example1.png,hudname=paperscript,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40,mousestate=1:state=11
:state=11,hudshow=paperscript,hudfadeout=paperscript,plrdisable=3700,timerstart,timergreater=37000:plrdisable=0
What I'm trying to do is have the player be near the object, click with the left mouse, and the player is disabled for the ammount I can determine. In the script, I have the player waiting for 37 seconds. I want to play a sound over the hud and the hud to stay on the screen for the same time that the player is disabled. After the time is up, the hud fades out, player is no longer disabled and the script ends.
Obviously this is a little over my head because I've tried over 10 variations of this and none of them worked. Can anyone help me?
PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit