Difference between revisions of "GetFriendHit"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
(Noticed I had a typo in my last change so I fixed minor grammar.) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
FriendlyGuard.GetFriendHit player | FriendlyGuard.GetFriendHit player | ||
Returns the number friendly hits from the TargetActor. | 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. | ||
[[Category:Console Commands]] | [[Category:Console Commands]] | ||
[[Category:Condition Functions]] | [[Category:Condition Functions]] |
Latest revision as of 10: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.