Cherd,
Greetings. Thanks for the contribution. I've taken the liberty of making a variation of the
healthuse.fpi script.
PlayerUseHealth.fpi will allow you to approach an entity, get a HUD prompt, and press ENTER to activate the health increase.
;Artificial Intelligence Script====================================================================
;Header
desc = Player Use Health
;Scripted By Seth Black
;Assign this script to a medkit or foodsource, and player will be able to choose when to activate
;the health increase by pressing the ENTER key.
;Triggers
:state=0,cantake,plrdistwithin=50:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\eatit.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=50,plrusingaction=1:state=1,plrsound=$0,activateifused=1,alttexture=1,playertake,plraddhealth=50,plrsound=audiobank\items\healthup.wav
;End of Script=====================================================================================
Although not tested, it should now be possible to carry a medic kit or food source, and use it only when the player
chooses to replenish health points.
I've attached
eatit.tga, so that you can test it out. Place it in
languagebank\english\gamecore\text, and you're all set!
Thanks,
Seth Black
"...I'm sorry, could you repeat your question a little louder? I'm a trifle deaf in this ear."
- Willie Wonka