实体
玩家 FindPlayer*
查看 Markdowncommon.h 玩家快捷(SA 高频)
common.h · SA 高频
未进档时指针常 null,先判空。
playerId = -1 为本机。
CPlayerPed* FindPlayerPed(int playerId = -1);不在车返回 null。
CVehicle* FindPlayerVehicle(int playerId = -1, bool bIncludeRemote = false);CVector FindPlayerCoors(int playerId = -1);
CVector const& FindPlayerSpeed(int playerId = -1);
float FindPlayerHeading(int playerId = -1);
float FindPlayerHeight();变体去掉瞄准 / 室内偏移。
CEntity* FindPlayerEntity(int playerId = -1);
CVector const& FindPlayerCentreOfWorld(int playerId = -1);
CVector const& FindPlayerCentreOfWorld_NoSniperShift(int playerId = -1);
CVector FindPlayerCentreOfWorld_NoInteriorShift(int playerId = -1);判空再用。改星级见 通缉 CWanted。
CWanted* FindPlayerWanted(int playerId = -1);bool InTwoPlayersMode();
评论