Difference between revisions of "AgeRace"

114 bytes added ,  02:13, 13 January 2011
no edit summary
imported>Cipscis
(→‎Notes: Minor grammar fixes to last edit. Updated to reflect User:JoshNZ's findings (http://forums.bethsoft.com/index.php?/topic/1104063-changing-a-npcs-hair/))
imported>Ez0n3
 
Line 1: Line 1:
[[AgeRace]] changes an actor to be an older or younger version of their current race.  
{{Function
|origin = GECK1
|summary = [[AgeRace]] changes an actor to be an older or younger version of their current race.  


In Fallout 3, this command is used only to set the player's age from adult to child before the vault tutorial quest and the Tranquility Lane quest, and back to adult again on completion of these quests.
In Fallout 3, this command is used only to set the player's age from adult to child before the vault tutorial quest and the Tranquility Lane quest, and back to adult again on completion of these quests.
Line 14: Line 16:


They also all have eg "AsianOldAged" versions, but the ~OldAged versions are not chained with the "older"/"younger" dropdowns, so are ignored by the AgeRace command.
They also all have eg "AsianOldAged" versions, but the ~OldAged versions are not chained with the "older"/"younger" dropdowns, so are ignored by the AgeRace command.
 
|name = AgeRace
=='''Syntax'''==
|returnType = void
  [ActorRef].AgeRace ''AgeValue''
  |referenceType = [ActorRefID]
 
|arguments =
=='''Examples'''==
  {{FunctionArgument
  JoeREF.AgeRace -2
  |Name = AgeValue
  |Type = int
  }}
  |example = JoeREF.AgeRace -2
Whatever the age of Joe, he will be changed to be the child version of his current race.
Whatever the age of Joe, he will be changed to be the child version of his current race.


Player.AgeRace 1
Player.AgeRace 1
If the player is currently a child, he will be changed to be the adult version of his current race. If the player is an adult, they will be changed to an old person. If the player is already old, they will be left unchanged.
If the player is currently a child, he will be changed to be the adult version of his current race. If the player is an adult, they will be changed to an old person. If the player is already old, they will be left unchanged.
}}


=='''Notes'''==
==Notes==
*Any character this is done to uses the default face textures for their new race.  
*Any character this is done to uses the default face textures for their new race.  
**If the player's chosen hair is now invalid for the changed race, the default hair is shown instead. If you change them back, their hair will be restored.
**If the player's chosen hair is now invalid for the changed race, the default hair is shown instead. If you change them back, their hair will be restored.
Line 34: Line 40:
*This function is new in the GECK, and was not available in the TES4 Construction Set.
*This function is new in the GECK, and was not available in the TES4 Construction Set.


=='''See Also'''==
==See Also==
*[[MatchRace]]
*[[MatchRace]]
*[[SetPCYoung]]
*[[SetPCYoung]]
Anonymous user