Kismet: mcu8_SeqCond_IsGamePaused

#Kismet

Check if the game is paused

mcu8_SeqCond_IsGamePaused.uc

[RAW] [Download]

class mcu8_SeqCond_IsGamePaused extends SequenceCondition;
 
event Activated()
{
    OutputLinks[(class'WorldInfo'.static.GetWorldInfo().Game.Pausers.Length == 0) ? 0 : 1].bHasImpulse = true;
}
 
defaultproperties
{
    ObjName="Is Game Paused"
    ObjCategory="Game"
 
    OutputLinks.Empty;
    OutputLinks(0)=(LinkDesc="Not Paused")
    OutputLinks(1)=(LinkDesc="Paused")
 
    VariableLinks.Empty;
}