hud_display_create_state()

Parameters:
none
 
Returns:
none

Description:
Create a new state to control various HUD elements. A HUD state is essentialy a filter, that

can control multiple HUD elements

returns: ID to the newly create HUD state

Typical usage (hiding the minimap):

   -- Create a new HUD display state, add the minimap element to be hidden, and apply the state
   local my_hud_state = hud_display_create_state()
   hud_display_set_element(my_hud_state, HUD_ELEM_MINIMAP)
   hud_display_commit_state(my_hud_state)

   -- Minimap is now hidden.  Time to show it again
   hud_display_remove_state(my_hud_state)

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:16