Difference between revisions of "GetFriendHit"
Jump to navigation
Jump to search
entered info, used the template (I think) for functions
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>PoHa! (entered info, used the template (I think) for functions) |
||
Line 1: | Line 1: | ||
{{ | {{Function | ||
|CSWikiPage = GetFriendHit | |||
|origin = GECK1 | |||
|summary = Returns the number of friendly hits made by the target actor on the calling actor. | |||
|name = GetFriendHit | |||
|returnVal = hits | |||
|returnType = int | |||
|referenceType = [Actor] | |||
|arguments = | |||
{{FunctionArgument | |||
|Name = Target | |||
|Type = ActorRef | |||
}} | |||
|example = <pre>BuddyRef.GetFriendHit player</pre> | |||
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== | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Functions (GECK 1.1)]] | [[Category:Functions (GECK 1.1)]] | ||
[[Category:Condition_Functions]] |