Hello
I used to be a very active participant on the forums a few years ago and was a decent scripter (though I didn't post much of them
)
However, I am semi-quickly re-learning the ropes of scripting. I wrote my first HUD script - and it works!
;Artificial Intelligence Script
;Header
desc = Show HUD when close to object
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\user\Android.dds,hudname=android1,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=20:hudshow=android1,state=1
:state=1,plrdistfurther=30:hudunshow=android1,state=10
;End of Script
But I'm having a slight issue: the HUD only works when I stare directly at the object. You're probably thinking, "So what?" Well, here's the story: the object that is running the script is really a sheet of paper - in fact, it's the weapon pickup for the paper_2 in "The Scary Thinker" Puzzles model pack (can't remember the exact number; it's been too long
). The way the paper is situated, it's lying on top of a table. However, in order for the HUD to display, I have to jump onto the table. I don't want that. I want it to display when the player gets close.
Can someone tell me what I'm not doing right/point me in the right direction?
Thank you,
Captain Coder
As a believer in Jesus Christ, I am trying to use my passion for game creation for His glory.