Difference between revisions of "GetHUD"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns a reference to the CHUD object. </onlyinclude> <syntaxhighlight lang="cpp"> CHUD@ getHUD() </syntaxhighlight> Example from Entities/Characters/Scripts/...")
(No difference)

Revision as of 20:08, 22 August 2012

Returns a reference to the CHUD object.

CHUD@ getHUD()

Example from Entities/Characters/Scripts/ArcherLogic.as:

void ManageCursors( CBlob@ this )
{
  // set cursor
  if (this.isMyPlayer())
  {
    if (getHUD().hasButtons())      getHUD().SetDefaultCursor();
  }	
}