c2i forums

Full Version: 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.