27 lines
494 B
Ucode
27 lines
494 B
Ucode
// can be used only on KF_StoryNPC_Spawnable_SE
|
|
|
|
class ACTION_NPC_Bleed extends ScriptedAction;
|
|
|
|
var(Action) bool bBleed;
|
|
var(Action) name NPC_Tag;
|
|
|
|
function bool InitActionFor(ScriptedController C)
|
|
{
|
|
local KF_StoryNPC_Spawnable_SE P;
|
|
|
|
foreach C.DynamicActors(Class'KF_StoryNPC_Spawnable_SE',P, NPC_Tag)
|
|
P.bBleed = bBleed;
|
|
|
|
return false;
|
|
}
|
|
|
|
function string GetActionString()
|
|
{
|
|
return ActionString@bBleed;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
ActionString="NPC bleed"
|
|
}
|