实体
玩家 FindPlayer*
common.h 玩家快捷(SA 高频)
common.h · SA 高频
未进档时指针常 null,先判空。
取玩家 ped
FindPlayerPed
playerId = -1 为本机。
CPlayerPed* FindPlayerPed(int playerId = -1);取玩家载具
FindPlayerVehicle
不在车返回 null。
CVehicle* FindPlayerVehicle(int playerId = -1, bool bIncludeRemote = false);取坐标速度朝向
FindPlayerCoors / FindPlayerSpeed / FindPlayerHeading
CVector FindPlayerCoors(int playerId = -1);
CVector const& FindPlayerSpeed(int playerId = -1);
float FindPlayerHeading(int playerId = -1);
float FindPlayerHeight();取玩家实体与世界中心
FindPlayerEntity / FindPlayerCentreOfWorld
变体去掉瞄准 / 室内偏移。
CEntity* FindPlayerEntity(int playerId = -1);
CVector const& FindPlayerCentreOfWorld(int playerId = -1);
CVector const& FindPlayerCentreOfWorld_NoSniperShift(int playerId = -1);
CVector FindPlayerCentreOfWorld_NoInteriorShift(int playerId = -1);取通缉对象
FindPlayerWanted
判空再用。改星级见 通缉 CWanted。
CWanted* FindPlayerWanted(int playerId = -1);双人模式
InTwoPlayersMode
bool InTwoPlayersMode();