mcu8_SeqAct_ToggleTick

#Kismet

Toggles actor Tick() function

Useful for stopping the cat trains (and maybe other stuff)

mcu8_SeqAct_ToggleTick.uc

[RAW] [Download]

/**
 *
 * Copyright 2012-2015 Gears for Breakfast ApS. All Rights Reserved.
 */
 
class mcu8_SeqAct_ToggleTick extends SequenceAction;
 
var() Array<Actor> Actors;
 
defaultproperties
{
    ObjName="Toggle Tick"
    ObjCategory="Toggle"
 
    InputLinks(0)=(LinkDesc="Turn On")
    InputLinks(1)=(LinkDesc="Turn Off")
 
    bCallHandler=false;
    VariableLinks.Empty;
 
    VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="Target",bWriteable=true,PropertyName=Actors)
}
 
event Activated()
{
    local Actor a;
    foreach Actors(a) 
        a.SetTickIsDisabled(InputLinks[1].bHasImpulse);
}