Difference between revisions of "CREATE MISSION TRAIN"

From GTAMods Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Parameter1:<br>Integer<br>
+
{{Native
Unknown - may be train type like in SA? (i used 4)<br>
+
|np=6
Parameter2:
+
|p1t=integer
<br>
+
|p1d=train type (example: 1 Brown Streak, 3 Frieght)
Float
+
|p2t=float
<br>
+
|p2d=X position
X position
+
|p3t=float
<br>
+
|p3d=Y position
Parameter3:
+
|p4t=float
<br>
+
|p4d=Z position
Float
+
|p5t=integer
<br>
+
|p5d=Train direction (boolean value: true1 or false0)
Y position
+
|p6t=Pointer
<br>
+
|p6d=Variable to store train handle
Parameter4:
+
|rd=Creates a Train at the nearest track at the given coordinates. Direction: Clockwise [bool = 1] or Anti-Clockwise [bool = 0]. Article last edited by X Dukinja on May 5 2025.
<br>
+
}}
Float
+
{{stub}}
<br>
 
Z position
 
<br>
 
Parameter5:
 
<br>
 
Integer
 
<br>
 
Train direction (1 or 0)<br>
 
Parameter6:
 
<br>
 
Pointer
 
<br>
 
Variable to store train handle
 

Latest revision as of 11:01, 5 May 2025

CREATE_MISSION_TRAIN
Number of parameters: 6
Parameter #TypeDescription
1.integertrain type (example: 1 Brown Streak, 3 Frieght)
2.floatX position
3.floatY position
4.floatZ position
5.integerTrain direction (boolean value: true1 or false0)
6.PointerVariable to store train handle
Return value:
TypeDescription
NoneCreates a Train at the nearest track at the given coordinates. Direction: Clockwise [bool = 1] or Anti-Clockwise [bool = 0]. Article last edited by X Dukinja on May 5 2025.