Add function to check if the controller possesses the player
This commit is contained in:
parent
3d836c6ba8
commit
41c07f7300
|
@ -63,6 +63,12 @@ public:
|
|||
return Vehicle;
|
||||
}
|
||||
|
||||
UFUNCTION(Category = "Wheeled Vehicle Controller", BlueprintCallable)
|
||||
virtual bool IsPossessingThePlayer() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/// @}
|
||||
// ===========================================================================
|
||||
/// @name Road map
|
||||
|
|
|
@ -46,6 +46,18 @@ public:
|
|||
|
||||
virtual void Tick(float DeltaTime) override;
|
||||
|
||||
/// @}
|
||||
// ===========================================================================
|
||||
/// @name AWheeledVehicleAIController overrides
|
||||
// ===========================================================================
|
||||
/// @{
|
||||
public:
|
||||
|
||||
virtual bool IsPossessingThePlayer() const final
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/// @}
|
||||
// ===========================================================================
|
||||
/// @name Player state
|
||||
|
|
Loading…
Reference in New Issue