class SS_SequenceAction_InspectItem extends SequenceAction; var() String Header; var() Array Descriptions; var Object Player; event Activated() { local Hat_Player plyr; local SS_HUDMenu_DecoratedInfo hud; plyr = GetPlayer(Player); if(plyr == None) return; if(InputLinks[0].bHasImpulse) { hud = SS_HUDMenu_DecoratedInfo(Hat_HUD(Hat_PlayerController(plyr.Controller).myHUD).OpenHUD(class'SS_HUDMenu_DecoratedInfo')); hud.SetDecoratedText(Hat_HUD(PlayerController(plyr.Controller).MyHUD), Header, Descriptions); hud.KismetInstigator = self; OutputLinks[0].bHasImpulse = true; } } function Hat_Player GetPlayer(Object p) { local Hat_Player ply; ply = Hat_Player(p); return ((ply != None && ply.IsA('Hat_Player')) ? ply : Hat_Player(Hat_PlayerController(p).Pawn)); } defaultproperties { ObjName="Inspect Item"; ObjCategory="Player"; InputLinks(0)=(LinkDesc="Inspect"); InputLinks(1)=(LinkDesc="Leave"); OutputLinks(0)=(LinkDesc="Out"); OutputLinks(1)=(LinkDesc="On Leaving"); VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="Target",PropertyName=Player); bAutoActivateOutputLinks = false; }