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.
SHow and Hide HUD elements
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
Re: SHow and Hide HUD elements
Well,if you want to hide something shown on the compas,you can always use triggered spawning.
- creekmonkey
- Posts: 116
- Joined: Tue Oct 23, 2007 2:55 pm
Re: SHow and Hide HUD elements
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.
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: SHow and Hide HUD elements
[Edit]
see below
see below
Re: SHow and Hide HUD elements
How'bout ActivateHudElement()? Does it only work for attributes?
Pain is only psychological.
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: SHow and Hide HUD elements
Oops, totally forgot about that command should work for all HUD elements ...
- creekmonkey
- Posts: 116
- Joined: Tue Oct 23, 2007 2:55 pm
Re: SHow and Hide HUD elements
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
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.
Pain is only psychological.
- creekmonkey
- Posts: 116
- Joined: Tue Oct 23, 2007 2:55 pm
Re: SHow and Hide HUD elements
Thanks Juutis. Guess I overlooked it in the manual.