Difference between revisions of "Talk:SetFactionRank - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Sollar
imported>Jbezorg
Line 16: Line 16:


--[[User:Sollar|Sollar]] 11:59, 13 June 2012 (EDT)
--[[User:Sollar|Sollar]] 11:59, 13 June 2012 (EDT)
----
What is the max/min value that can be assigned to rank? Is it limited by the data type of signed int? i.e. −2,147,483,648 to 2,147,483,647
Must the rank be defined in the faction to be retained? e.g. kActor.SetFactionRank(kFaction, 50) when rank 50 is not defined. Would a later call to kActor.GetFactionRank(kFaction) return 50?

Revision as of 13:30, 10 June 2013

Here's an example of the faction settings to that of a follower:

Define these two properties:

 Faction Property DismissedFollowerFaction Auto
 Faction Property PlayerFollowerFaction Auto


Then call these statements in your code:

 ActorValue.RemoveFromFaction(DismissedFollowerFaction)
 ActorValue.SetFactionRank(PlayerFollowerFaction, 0)


(Note: you still need to create your own follower package if you're not using DialogueFollower Follower Alias, but ScenicCarriages will now recognize the NPC as a follower and include them in the carraige.)

--Sollar 11:59, 13 June 2012 (EDT)


What is the max/min value that can be assigned to rank? Is it limited by the data type of signed int? i.e. −2,147,483,648 to 2,147,483,647

Must the rank be defined in the faction to be retained? e.g. kActor.SetFactionRank(kFaction, 50) when rank 50 is not defined. Would a later call to kActor.GetFactionRank(kFaction) return 50?