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

24 lines
425 B
Ucode

class ACTION_TurnTowardPlayer extends LatentScriptedAction;
function bool InitActionFor(ScriptedController C)
{
C.ScriptedFocus = C.GetMyPlayer();
C.CurrentAction = self;
return true;
}
function bool TurnToGoal()
{
return true;
}
function Actor GetMoveTargetFor(ScriptedController C)
{
return C.GetMyPlayer();
}
defaultproperties
{
ActionString="Turn toward player"
bValidForTrigger=false
}