Jump to content

Native Details

  • NameGET_PED_LAST_WEAPON_IMPACT_COORD
  • NamespaceWEAPON
  • Native Hash0x6C4D0409BA1A2BC2
  • TypeBOOL
  • First seen version1207

Native Parameters

  • Parameter 0Ped ped
  • Parameter 1Vector3* coords

DESCRIPTION

There is no description yet for this native, why not edit it and add one?


User Feedback

Recommended Comments

ChinaCxCoder

Members

Same as in Grand Theft Auto - return coords for your last bullet
Must be in loop and Vector3 struct must be other
 

typedef struct
{
	float x;
	DWORD _paddingx;
	float y;
	DWORD _paddingy;
	float z;
	DWORD _paddingz;
} Vector3;

 

DoctorBones

Insiders
(edited)

Nevermind figured it out.

Edited by DoctorBones

Waffurs

Members

Hi, new modder following Mooshe's video tutorial to make lightning tomahawk. Not sure how to call this function to get the coords as in the video he uses older scripthookdotnet api with outputargument. Why does it return bool?

Waffurs

Members
(edited)

Hello! I'm trying to use this function to make a lightning strike on the given coordinates. How I assume this works is the vector3 pointer given in the parameters will be used to put the coordinate value into the vector3 variable the pointer points to. But when I then print out that vector3 value to check, I get 0 in the Y component. X and Z components are not 0. Any ideas why? Thanks

 

Edit:
I realized that the Z coordinate returned is actually the Y coordinate. So I just decided to use arthur's current Z coordinate as the Z component for the lastweapimpact vector3 lol.

Edited by Waffurs

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

Recently Browsing 0

  • No registered users viewing this page.