GetNearestCompassHostileDirection
From GECK
A function added by the JohnnyGuitar NVSE Plugin.
Description
Returns the direction of a nearest hostile compass target as one of the following values:0 - front 1 - front right 2 - right 3 - back right 4 - back 5 - back left 6 - left 7 - front left
Syntax
(int(0-8)) GetNearestCompassHostileDirection skipInvisibleHostiles:int{0/1}
Example
set iDirection to GetNearestCompassHostileDirection 1 // Gets the direction of a nearest hostile actor, skipping invisible hostiles