Player::setHeadBlendData

From RAGE Multiplayer Wiki
Revision as of 23:44, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

!!!Can someone add working example for this???

try this:
headBlendData headData;
_GET_Player_HEAD_BLEND_DATA(PLAYER_Player_ID(), &headData);

SET_Player_HEAD_BLEND_DATA(PLAYER_Player_ID(), headData.shapeFirst, headData.shapeSecond, headData.shapeThird, headData.skinFirst, headData.skinSecond
, headData.skinThird, headData.shapeMix, headData.skinMix, headData.skinThird, 0);



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

Syntax

player.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