c2i forums
2 - Printable Version

+- c2i forums (http://c2i.pl)
+-- Forum: Public (http://c2i.pl/forum-1.html)
+--- Forum: PUBG (http://c2i.pl/forum-9.html)
+--- Thread: 2 (/thread-3226.html)



2 - jesse.lassiter - 08-09-2018

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.


RE: 2 - spsivanlnt - 08-09-2018

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.