Difference between revisions of "GetFriendHit"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>PoHa!
(entered info, used the template (I think) for functions)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Incomplete}}
{{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.
}}


Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/GetFriendHit GetFriendHit].
==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.0)]]
[[Category:Functions (GECK 1.1)]]
[[Category:Condition_Functions]]

Latest revision as of 22:19, 3 February 2010

< [[::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

[help]
(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