Vehicle::createMissionTrain: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Train models HAVE TO be loaded (requested) before you use this.<br>For variation 15 - request:<br><br>freight<br>freightcar<br>freightgrain<br>freightcont1<br>freightcont2<br>freighttrailer<br><br>
Train models HAVE TO be loaded (requested) before you use this.<br>For variation 15 - request:<br><br>freight<br>freightcar<br>freightgrain<br>freightcont1<br>freightcont2<br>freighttrailer<br><br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.createMissionTrain(variation, x, y, z, direction);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.createMissionTrain(variation, x, y, z, direction);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''variation:''' int
*'''variation:''' int
Line 12: Line 12:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:34, 6 May 2017

Train models HAVE TO be loaded (requested) before you use this.
For variation 15 - request:

freight
freightcar
freightgrain
freightcont1
freightcont2
freighttrailer

Syntax

mp.game.vehicle.createMissionTrain(variation, x, y, z, direction);

Required Arguments

  • variation: int
  • x: float
  • y: float
  • z: float
  • direction: Boolean

Return value

  • Vehicle handle or object

Example

// todo

See also