Difference between revisions of "GetFriendHit"
Jump to navigation
Jump to search
imported>SJML Bot (Bot creating condition functions pages.) |
(I added additional clarification that GetFriend hit is will trigger when the SUBJECT is hit not if the SUBJECT hits. You for sure could do some work to change it around with more conditions etc but by default when this condition is run on the Target the target will meet this condition once they are hit. This was not clear or stated in the wiki so I tested it in game quick as I needed to use this exact condition and then detailed how it worked.) |
||
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 the the Subject is 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]] |
Revision as of 10:38, 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 the the Subject is the "target," then the spell in this example will trigger when the NPC with the spell is hit by a friendly.