Page 1 of 1

SHow and Hide HUD elements

Posted: Fri Jul 18, 2008 7:13 pm
by creekmonkey
Is it possible to show or hide a HUD element with a script or trigger?

I know I can hide an element such as compass in the hud.ini with active=false, but what I need is to have certain HUD elements not show at game start then show when level changes, or at a specific point through the game. I have searched the docs, ebook and forum but cant seem to find what I need.

Re: SHow and Hide HUD elements

Posted: Sat Jul 19, 2008 9:14 am
by metal_head
Well,if you want to hide something shown on the compas,you can always use triggered spawning.:)

Re: SHow and Hide HUD elements

Posted: Sat Jul 19, 2008 7:26 pm
by creekmonkey
Maybe I didnt explain my self complety. I want to be able to hide and show HUD elements themself, such as the compass, radar health exct.

Re: SHow and Hide HUD elements

Posted: Sat Jul 19, 2008 7:43 pm
by QuestOfDreams
[Edit]
see below

Re: SHow and Hide HUD elements

Posted: Sat Jul 19, 2008 8:42 pm
by Juutis
How'bout ActivateHudElement()? Does it only work for attributes?

Re: SHow and Hide HUD elements

Posted: Sat Jul 19, 2008 10:08 pm
by QuestOfDreams
Oops, totally forgot about that command :oops: should work for all HUD elements ...

Re: SHow and Hide HUD elements

Posted: Sun Jul 20, 2008 1:08 am
by creekmonkey
OK im totally lost with the ActivateHudElement() command. I can not find any documentation on it anywhere. Is it lowlevel? highlevel? Could you elaborate?

Re: SHow and Hide HUD elements

Posted: Sun Jul 20, 2008 1:16 am
by Juutis
It's a low level command. It's in the manual under 'Misc' in the low level section:
ActivateHudElement(string AttributeName, bool Flag);
Activate/Deactivate the HUD for the attribute AttributeName.

Re: SHow and Hide HUD elements

Posted: Sun Jul 20, 2008 3:26 am
by creekmonkey
Thanks Juutis. Guess I overlooked it in the manual.