GRW ScriptHook 0.11.0
Plugin API for Ghost Recon Wildlands
Loading...
Searching...
No Matches
ShHit Struct Reference

Bullets often strike a child part, so root is resolved for you and is the one worth acting on. More...

#include <scripthook.h>

Data Fields

uint64_t entity
 validated against its own id
uint64_t root
 top of the parent chain
int kind
 kind of root, an ShEntityKind
uint32_t id
 entity+0x138
ShVec3 pos
 impact point
ShVec3 normal
 surface normal
float distance
 along the bullet's flight
uint64_t shooter
 who fired it, 0 if unknown
int byPlayer
 the local player fired it
uint64_t projectile
int index
 record index in the list

Detailed Description

Bullets often strike a child part, so root is resolved for you and is the one worth acting on.

Field Documentation

◆ entity

uint64_t ShHit::entity

validated against its own id

◆ root

uint64_t ShHit::root

top of the parent chain

◆ kind

int ShHit::kind

kind of root, an ShEntityKind

◆ id

uint32_t ShHit::id

entity+0x138

◆ pos

ShVec3 ShHit::pos

impact point

◆ normal

ShVec3 ShHit::normal

surface normal

◆ distance

float ShHit::distance

along the bullet's flight

◆ shooter

uint64_t ShHit::shooter

who fired it, 0 if unknown

◆ byPlayer

int ShHit::byPlayer

the local player fired it

◆ projectile

uint64_t ShHit::projectile

◆ index

int ShHit::index

record index in the list


The documentation for this struct was generated from the following file: