Rope::loadRopeData: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Rope presets can be found in the gamefiles. One example is 'ropeFamily3', it is NOT a hash but rather a string.
Rope presets can be found in the gamefiles. One example is 'ropeFamily3', it is NOT a hash but rather a string.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">rope.loadRopeData(rope, rope_preset);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.rope.loadRopeData(rope, rope_preset);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''rope:''' Object handle or object
*'''rope:''' Object handle or object
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Rope_function_c}}
{{Rope_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:31, 6 May 2017

Rope presets can be found in the gamefiles. One example is 'ropeFamily3', it is NOT a hash but rather a string.

Syntax

mp.game.rope.loadRopeData(rope, rope_preset);

Required Arguments

  • rope: Object handle or object
  • rope_preset: String

Return value

  • unknown (to be checked)

Example

// todo

See also

Template:Rope s function c