MakePlayerFriend - Actor
Revision as of 16:44, 29 June 2013 by imported>Thingy Person (→Syntax)
Member of: Actor Script
Convenience function that makes the actor a friend of the player, if allowed.
Syntax
Function MakePlayerFriend()
ActorBase myBase = GetActorBase()
if myBase.IsUnique()
if GetRelationshipRank(Game.GetPlayer())== 0
SetRelationshipRank(Game.GetPlayer(), 1)
else
endif
else
endif
endFunction
Parameters
None.
Return Value
None.
Examples
; Make Bob a friend of the player
Bob.MakePlayerFriend()
Notes
- If the actor is unique and relationship rank with player = 0, raises it to 1. Otherwise does nothing.