Quote: "Hey can someone help me with the gasmasks? How do i place them on the hud?
Sorry For the noobish question but i have no idea of what to do with the hud.
Abdul Ahad "
Just use your imagination.To say you're building a game like S.T.A.L.K.E.R.You need a gas mask to survive.Just use states like a flashlight. (keycode 33 = F) Heres the script :
;Artificial Intelligence Script
Gas Mask script
;Header
desc = gas mask script
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1680,hudsizey=1050,hudimagefine=gamecore\huds\coldfireGasMaskNormal.png,hudname=mask,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=mask,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=33:hudunshow=mask,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script
You can add a timer and set a timelimit after which the player will get hurt if he doesn't have a mask on ... Also you have to change hudsizex and hudsizey to your screen resolution or just remove them
Да живее България!