Player::setHeadBlendData: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.<br><br>The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.<br><br>THEAETIK: For more info please refer to this topic. <br>gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained<br><br>'''''Vanetti:''''' <br>The first ids from 0 to 45 changing mother shape (shapeFirstID) or mother skin color (skinFirstID)<br>The second ids from 0 to 45 changing father shape (shapeSecondID) and father skin color (skinSecondID)<br>The third ids does not change anything, you can leave this with 0<br>You should leave thirdMix to the 0, in other way father's skin color will be white everytime<br>Seems like isParent do not change anything ( true or false )<br>Shape and skin mixing values variable between 0.0f and 1.0f
The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.<br><br>The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.<br><br>THEAETIK: For more info please refer to this topic. <br>gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained<br><br>The first ids from 0 to 45 changing mother shape (shapeFirstID) or mother skin color (skinFirstID)<br>The second ids from 0 to 45 changing father shape (shapeSecondID) and father skin color (skinSecondID)<br>The third ids does not change anything, you can leave this with 0<br>You should leave thirdMix to the 0, in other way father's skin color will be white everytime<br>Seems like isParent do not change anything ( true or false )<br>Shape and skin mixing values variable between 0.0f and 1.0f
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.players.local.setHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.players.local.setHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''shapeFirstID:''' int
*'''{{Required}}shapeFirstID:''' {{RageType|Int}}
*'''shapeSecondID:''' int
*'''{{Required}}shapeSecondID:''' {{RageType|Int}}
*'''shapeThirdID:''' int
*'''{{Required}}shapeThirdID:''' {{RageType|Int}}
*'''skinFirstID:''' int
*'''{{Required}}skinFirstID:''' {{RageType|Int}}
*'''skinSecondID:''' int
*'''{{Required}}skinSecondID:''' {{RageType|Int}}
*'''skinThirdID:''' int
*'''{{Required}}skinThirdID:''' {{RageType|Int}}
*'''shapeMix:''' float
*'''{{Required}}shapeMix:''' {{RageType|Float}}
*'''skinMix:''' float
*'''{{Required}}skinMix:''' {{RageType|Float}}
*'''thirdMix:''' float
*'''{{Required}}thirdMix:''' {{RageType|Float}}
*'''isParent:''' Boolean
*'''{{Required}}isParent:''' {{RageType|Boolean}}


===Return value===
===Return value===

Latest revision as of 23:37, 21 February 2020

The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.

The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.

THEAETIK: For more info please refer to this topic.
gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained

The first ids from 0 to 45 changing mother shape (shapeFirstID) or mother skin color (skinFirstID)
The second ids from 0 to 45 changing father shape (shapeSecondID) and father skin color (skinSecondID)
The third ids does not change anything, you can leave this with 0
You should leave thirdMix to the 0, in other way father's skin color will be white everytime
Seems like isParent do not change anything ( true or false )
Shape and skin mixing values variable between 0.0f and 1.0f

Syntax

mp.players.local.setHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent);

Required Arguments

  • *shapeFirstID: Int
  • *shapeSecondID: Int
  • *shapeThirdID: Int
  • *skinFirstID: Int
  • *skinSecondID: Int
  • *skinThirdID: Int
  • *shapeMix: Float
  • *skinMix: Float
  • *thirdMix: Float
  • *isParent: Boolean

Return value

  • Undefined

Example

// todo

See also

Player::setFaceFeature