GetFriendHit

Revision as of 22:19, 3 February 2010 by imported>PoHa! (entered info, used the template (I think) for functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

Link to TES4 Construction Set Wiki: GetFriendHit.

A function included in the GECK version 1.1.0.36.

Description

Returns the number of friendly hits made by the target actor on the calling actor.

Syntax

(hits:int) [Actor].GetFriendHit Target:ActorRef

Example

BuddyRef.GetFriendHit player

Returns the number of times the player has hit Buddy.

Notes

  • This is usually used in dialogue conditions, to check whether or not the player has attacked a 'friend,' and making the actor say an appropriate warning.

SeeAlso