## XIDCine
Class BossHealthBar

source: C:\XIII\XIDCine\Classes\BossHealthBar.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--XIDCine.BossHealthBar

Direct Known Subclasses:None

class BossHealthBar
extends Engine.Info

    //=============================================================================
    // BossHealthBar
    // Created by iKi on Jul 29th 2003
    //=============================================================================

Variables
`Pawn` | `BossPawn`
`XIIIPlayerController` | `PC`

Source Code

    00001	//=============================================================================
    00002	// BossHealthBar
    00003	// Created by iKi on Jul 29th 2003
    00004	//=============================================================================
    00005	class BossHealthBar extends Info
    00006		hidecategories(advanced,Collision,display,movement,rolloff,sound)
    00007		placeable;
    00008
    00009	#exec Texture Import File=Textures\seen_ico.pcx Name=HealthBar_ico Mips=Off Masked=1
    00010
    00011	VAR() Pawn BossPawn;
    00012	VAR XIIIPlayerController PC;
    00013
    00014	EVENT Trigger( actor Other, pawn EventInstigator )
    00015	{
    00016		PC = XIIIGameInfo(Level.Game).MapInfo.XIIIController;
    00017		XIIIBaseHud(PC.MyHud).AddBossBar( BossPawn );
    00018	//	BossPawn.bBoss=false;
    00019		SetTimer( 0.2, true );
    00020	}
    00021
    00022	EVENT Timer( )
    00023	{
    00024		if ( BossPawn==none || BossPawn.bIsDead )
    00025		{
    00026			XIIIBaseHud(PC.MyHud).AddBossBar( none );
    00027			Destroy();
    00028		}
    00029	}
    00030
    00031
    00032
    00033
    00034	defaultproperties
    00035	{
    00036	     Texture=Texture'XIDCine.HealthBar_ico'
    00037	}

End Source Code