Gameplay::getModelDimensions: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Gets the dimensions of a model.<br><br>Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is.
Gets the dimensions of a model.<br><br>Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash, minimum, maximum);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''modelHash:''' Model hash or name
*'''modelHash:''' Model hash or name
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_s_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:08, 22 July 2024

Gets the dimensions of a model.

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

Syntax

mp.game.gameplay.getModelDimensions(modelHash);

Required Arguments

  • modelHash: Model hash or name

Return value

  • object: min, max

Example

// todo

See also