rott/kf_sources/ScrnStoryGame/Classes/ACTION_NPC_Active.uc
2026-07-14 20:27:09 +07:00

25 lines
424 B
Ucode

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"
}