Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2
#1
Unable to locate the local player's position: Code: Vector3 GetLocalPlayerPos () { Vector3 pos ; if (! mem ) return pos ; pos = PM -> readVec ( LocalPlayer + 0x70 );   return pos ;   float GetLocalPlayerHealth () { if (! mem ) return 0.f ; auto playercontroller = mem -> readType <int64_t> ( global :: pLocalPlayer + 0x30 , PROTO_NORMAL_READ ); auto pawn = PM -> readType <int64_t> ( playercontroller + 0x428 ); return PM -> readType <float_t> ( pawn + 0x107c ); } } local players's position only works on the born island, and it turns to some vector related to FOV after the jump. Need help from you.
Reply
#2
I think you can read camera's location instead (it's always behind player from 0-300px) or find right actor by compare needed actor to pLocalPlayer and get that actor's location. I am using camera's location.
Reply




Users browsing this thread: 1 Guest(s)