SetTrainTrack: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{Needs Example}} {{New feature/item|3.0151|1.6|7485| Sets the track of a train }} ==Syntax== <syntaxhighlight lang="lua">bool setTrainTrack ( vehicle train, int...") |
mNo edit summary |
||
Line 8: | Line 8: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setTrainTrack ( vehicle train, int track )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setTrainTrack ( vehicle train, int track )</syntaxhighlight> | ||
{{OOP||[[vehicle]]: | {{OOP||[[vehicle]]:setTrack|track|setTrainTrack}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''train:''' the train of which to | *'''train:''' the train of which to set the track | ||
*'''track:''' the track where you want to set the train. It can be 1, 2 or 3. | *'''track:''' the track where you want to set the train. It can be 1, 2 or 3. | ||
Revision as of 21:24, 11 September 2015
Script Example Missing Function SetTrainTrack needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
Sets the track of a train
Syntax
bool setTrainTrack ( vehicle train, int track )
OOP Syntax Help! I don't understand this!
- Method: vehicle:setTrack(...)
- Variable: .track
- Counterpart: setTrainTrack
Required Arguments
- train: the train of which to set the track
- track: the track where you want to set the train. It can be 1, 2 or 3.
Returns
Returns true if the track was set to the train, false otherwise.
Example
--TODO
See Also
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates