class ACTION_NPC_Active extends ScriptedAction; var(Action) bool bActive; var(Action) name NPC_Tag; function bool InitActionFor(ScriptedController C) { local KF_StoryNPC P; foreach C.DynamicActors(Class'KF_StoryNPC',P, NPC_Tag) P.SetActive(bActive); return false; } function string GetActionString() { return ActionString@bActive; } defaultproperties { ActionString="NPC active" }