SetRelationshipRank - Actor

Revision as of 16:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Actor Script

Sets the relationship rank between this actor and another.

SyntaxEdit

Function SetRelationshipRank(Actor akOther, int aiRank) native

ParametersEdit

  • akOther: The other actor to determine our relationship with.
  • aiRank: The relationship rank to set between this actor and the other.
    • The following values are acceptable: (Will eventually be an enum)
      • 4: Lover
      • 3: Ally
      • 2: Confidant
      • 1: Friend
      • 0: Acquaintance
      • -1: Rival
      • -2: Foe
      • -3: Enemy
      • -4: Archnemesis

Return ValueEdit

None.

ExampleEdit

; Set the fan's relationship with the player to archnemesis
AnnoyingFan.SetRelationshipRank(Game.GetPlayer(), -4)

NotesEdit

Relationship data is NOT stored for Templated Actors, and any scripts that would set relationship data on a Templated Actor will get wiped once your game session is over (which obviously has bad implications for Save/Load).

See AlsoEdit