Hello again scripting community. I present you with, yet again, another problem I am having. This time I tried though.
I am making a script that if you shoot someone in the head, it will display an image, and make a sound, this script will be put into the appear slot, and will hopefully work in multi-player games.
So far I have this:
;Artificial Intelligence Script
;Header
desc = addenemyheadshot
;Triggers
:state=0:state=1,setalphafade=100,headshot=60,animate=1
:state=1,alphafadeequal=0:incalphafade=100
:state=1,alphafadeequal=100:state=2,addaiteam=2,aiaddenemy=1 2,runfpidefault=1
:state=2,hudreset,hudx=80,hudy=9,hudimagefine=gamecore\Headshot.png,hudname=headshot,hudhide=1,hudmake=display,state=3
:state=3:timerstart,hudshow=headshot,state=4
:state=4,timergreater=5000:hudfadeout=headshot,state=5
:state=5,timergreater=1000:sound=audiobank\Head shot.wav,state=5
;End of Script
Head shots actually work (Tested single player only) but I hope that it may just work with multi-player. Really it will display the image on the screen that killed the guy via head shot. Any help would be appreciated. Thank you!
Putting fear back into sliced bread since 4th May 2010