Add function to check if the controller possesses the player

This commit is contained in:
nsubiron 2017-09-05 10:13:55 +01:00
parent 3d836c6ba8
commit 41c07f7300
2 changed files with 18 additions and 0 deletions

View File

@ -63,6 +63,12 @@ public:
return Vehicle;
}
UFUNCTION(Category = "Wheeled Vehicle Controller", BlueprintCallable)
virtual bool IsPossessingThePlayer() const
{
return false;
}
/// @}
// ===========================================================================
/// @name Road map

View File

@ -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