UPawnActionsComponent::SetControlledPawn

Use it to save component work to figure out what it's controlling or if component can't/won't be able to figure it out properly will throw a log warning if trying to set ControlledPawn if it's already set

Windows
MacOS
Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/Actions/PawnActionsComponent.h

Include

#include "Actions/PawnActionsComponent.h"

Source

/Engine/Source/Runtime/AIModule/Private/Actions/PawnActionsComponent.cpp

Syntax

void SetControlledPawn
(
    APawn * NewPawn
)

Remarks

Use it to save component work to figure out what it's controlling or if component can't/won't be able to figure it out properly will throw a log warning if trying to set ControlledPawn if it's already set

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss