mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:10:54 +01:00
30 lines
548 B
C++
30 lines
548 B
C++
#include "PapyrusFunctions.h"
|
|
|
|
#include <Games/ActorExtension.h>
|
|
|
|
namespace PapyrusFunctions
|
|
{
|
|
|
|
bool IsRemotePlayer(Actor* apActor)
|
|
{
|
|
spdlog::info("Calling IsRemotePlayer");
|
|
|
|
auto* pExtension = apActor->GetExtension();
|
|
if (!pExtension)
|
|
return false;
|
|
|
|
return pExtension->IsRemotePlayer();
|
|
}
|
|
|
|
bool IsPlayer(Actor* apActor)
|
|
{
|
|
spdlog::info("Calling IsPlayer");
|
|
|
|
auto* pExtension = apActor->GetExtension();
|
|
if (!pExtension)
|
|
return false;
|
|
|
|
return pExtension->IsPlayer();
|
|
}
|
|
|
|
} // namespace PapyrusFunctions
|