Difference between revisions of "GetFriendHit"

From the CreationKit Wiki
Jump to navigation Jump to search
(Noticed I had a typo in my last change so I fixed minor grammar.)
(Noticed I had a typo in my last change so I fixed minor grammar.)
 
(No difference)

Latest revision as of 11:39, 20 April 2024

Syntax:

[ActorID.]GetFriendHit TargetActor 

Example:

FriendlyGuard.GetFriendHit player 

Returns the number friendly hits from the TargetActor. Additionally, this means that if you use "GetFriendHit" as a condition attached to a spell given to a NPC, and set the Subject as the "target," then the spell in this example will trigger when the NPC with the spell is hit by a friendly.