SHow and Hide HUD elements

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
creekmonkey
Posts: 116
Joined: Tue Oct 23, 2007 2:55 pm

SHow and Hide HUD elements

Post 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.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: SHow and Hide HUD elements

Post by metal_head »

Well,if you want to hide something shown on the compas,you can always use triggered spawning.:)
User avatar
creekmonkey
Posts: 116
Joined: Tue Oct 23, 2007 2:55 pm

Re: SHow and Hide HUD elements

Post 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.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: SHow and Hide HUD elements

Post by QuestOfDreams »

[Edit]
see below
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: SHow and Hide HUD elements

Post by Juutis »

How'bout ActivateHudElement()? Does it only work for attributes?
Pain is only psychological.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: SHow and Hide HUD elements

Post by QuestOfDreams »

Oops, totally forgot about that command :oops: should work for all HUD elements ...
User avatar
creekmonkey
Posts: 116
Joined: Tue Oct 23, 2007 2:55 pm

Re: SHow and Hide HUD elements

Post 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?
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: SHow and Hide HUD elements

Post 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.
Pain is only psychological.
User avatar
creekmonkey
Posts: 116
Joined: Tue Oct 23, 2007 2:55 pm

Re: SHow and Hide HUD elements

Post by creekmonkey »

Thanks Juutis. Guess I overlooked it in the manual.
Post Reply