GetFriendHit

From the CreationKit Wiki
Jump to navigation Jump to search

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.