OnClientObjectMoveStart: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client event}} This event is triggered when an object moves. ==Parameters== <syntaxhighlight lang="lua"> </syntaxhighlight> ==Source== The source of this event i...")
 
No edit summary
Line 2: Line 2:
{{Client event}}
{{Client event}}
This event is triggered when an object moves.
This event is triggered when an object moves.
==Parameters==
<syntaxhighlight lang="lua">
</syntaxhighlight>
==Source==
==Source==
The source of this event is the object which was moved.
The source of this event is the object which was moved.

Revision as of 22:26, 21 January 2021

This event is triggered when an object moves.

Source

The source of this event is the object which was moved.

Example

local obj = createObject(5239, -2417.22339, -606.70374, 132.56250)
moveObject(obj, 3000, -2417.22339, -606.70374, 137.56250)

addEventHandler("onClientObjectMoveStart", obj,
    function()
        outputChatBox("started moving object")
    end
)

Requirements

This template will be deleted.

See Also

Client object events


Client event functions