Difference between revisions of "CREATE MISSION TRAIN"

From GTAMods Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|np=6
 
|np=6
 
|p1t=integer
 
|p1t=integer
|p1d=train type (example: 1 Brown Streak, 3 Frieght
+
|p1d=train type (example: 1 Brown Streak, 3 Frieght)
 
|p2t=float
 
|p2t=float
 
|p2d=X position
 
|p2d=X position
Line 10: Line 10:
 
|p4d=Z position
 
|p4d=Z position
 
|p5t=integer
 
|p5t=integer
|p5d=Train direction (1 or 0)
+
|p5d=Train direction (boolean value: true1 or false0)
 
|p6t=Pointer
 
|p6t=Pointer
 
|p6d=Variable to store train handle
 
|p6d=Variable to store train handle
 +
|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.
 
}}
 
}}
 
{{stub}}
 
{{stub}}

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.