Difference between revisions of "CREATE MISSION TRAIN"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: Parameter1: Integer Unknown - may be train type like in SA? (i used 4) Parameter2: Double X position Parameter3: Double Y position Parameter4: Double Z position Parameter5: Integer Train d...)
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Parameter1:
+
{{Native
Integer
+
|np=6
Unknown - may be train type like in SA? (i used 4)
+
|p1t=integer
Parameter2:
+
|p1d=train type (example: 1 Brown Streak, 3 Frieght)
Double
+
|p2t=float
X position
+
|p2d=X position
Parameter3:
+
|p3t=float
Double
+
|p3d=Y position
Y position
+
|p4t=float
Parameter4:
+
|p4d=Z position
Double
+
|p5t=integer
Z position
+
|p5d=Train direction (boolean value: true1 or false0)
Parameter5:
+
|p6t=Pointer
Integer
+
|p6d=Variable to store train handle
Train direction (1 or 0)
+
|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.
Parameter6:
+
}}
Pointer
+
{{stub}}
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.