Gameplay::getModelDimensions

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

Gets the dimensions of a model.

Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is.

Example from the scripts: GAMEPLAY::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()), &v_1A, &v_17);

Syntax

gameplay.getModelDimensions(modelHash, minimum, maximum);

Required Arguments

  • modelHash: Model hash or name
  • minimum: Vector3
  • maximum: Vector3

Return value

  • object: minimum, maximum

Example

todo

See also

Template:Gameplay function c