Jump to content

GET_PED_LAST_WEAPON_IMPACT_COORD


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

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;

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites



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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Red Dead Redemption 2 Native Database by www.mod-rdr.com, includes contributions by gudmunduro and alloc8or.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...