GetFriendHit

From the CreationKit Wiki
Revision as of 10:39, 20 April 2024 by 69.151.113.192 (talk) (Noticed I had a typo in my last change so I fixed minor grammar.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.