RU/onTrailerAttach: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


==Источник==
==Источник==
The [[event system#Event source|source]] of this event is the trailer [[vehicle]] that the truck got attached to.
Источником этого события является прицеп, который был присоединен к грузовику.


<!-- Only include this section below if cancelling the event has any effect. If you don't know if it does, ask a dev! -->
<!-- Only include this section below if cancelling the event has any effect. If you don't know if it does, ask a dev! -->
==Cancel effect==
==Отмена события==
If this event is [[Event system#Canceling|canceled]], the trailer will detach from the truck again.
Если это событие отменить, то прицеп снова отсоединится от грузовика.


==Example==  
==Пример==  
<!-- Explain what the example is in a single sentance -->
<!-- Explain what the example is in a single sentance -->
This example removes a trailer from the truck it is attached to. Good if you do not want people attaching trailers to vehicles
This example removes a trailer from the truck it is attached to. Good if you do not want people attaching trailers to vehicles

Revision as of 15:53, 6 March 2010

Данное событие происходит, когда прицеп присоединяется к грузовику.

Параметры

vehicle theTruck
  • theTruck: Грузовик, к которому был присоединен прицеп

Источник

Источником этого события является прицеп, который был присоединен к грузовику.

Отмена события

Если это событие отменить, то прицеп снова отсоединится от грузовика.

Пример

This example removes a trailer from the truck it is attached to. Good if you do not want people attaching trailers to vehicles

function detachTrailer(theTruck)
    detachTrailerFromVehicle(theTruck, source) --detach the newly attached trailer
 end
addEventHandler("onTrailerAttach", getRootElement(), detachTrailer)

See Also

Vehicle events


Event functions

Shared