Difference between revisions of "Talk:SetFactionRank - Actor"
Jump to navigation
Jump to search
imported>Jbezorg |
imported>Jbezorg |
||
Line 22: | Line 22: | ||
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? | 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? | ||
--[[User:Jbezorg]] |
Revision as of 13:31, 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?