Mod:Creation Kit/GetHitLocation

This condition function returns the hit location of the most recent successful hit.

Hit Locations
Hit location is taken from the most recently hit body part. Only direct hits such as those from either a melee attack or a projectile update an actors hit location. Indirect hits such as those from an explosion do not.

Specifically, hit location corresponds to the Part Type defined in the races Body Part Data form. If no Part Data exists for the collision, then GetHitLocation will return -1. If no collision exists for the Part Data, then GetHitLocation cannot return that Part Type - the only exception is if the body part is hit in VATS.

The following hit locations have been derived empirically: