- Dokumentacja
- Funkcje serwera
- setTrainDirection
Funkcja
setTrainDirection
Zapisuje kierunek jazdy pociągu po torze.
Składnia
bool setTrainDirection(vehicle element, bool value)Argumenty
elementvehicle- Pociąg.
valuebooltrue= zgodnie z kierunkiem toru,false= przeciwnie.
Zwraca
true przy powodzeniu.
Przykład
local train = createVehicle(538, 1700, -1950, 14)
setTrainDirection(train, false)
Uwagi
Stan dla skryptów. Patrz setTrainDerailed.