OnClientObjectMoveStop: 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 stop. ==Parameters== <syntaxhighlight lang="lua"> </syntaxhighlight> ==Source== The source of this ev...")
 
(Remove obsolete Requirements section)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client event}}
{{Client event}}
This event is triggered when an object moves stop.
{{Added feature/item|1.5.9|1.5.8|20811|This event is triggered when an [[object]]'s movements stop.}}
 
==Parameters==
==Parameters==
<syntaxhighlight lang="lua">
None.
 
</syntaxhighlight>


==Source==
==Source==
The source of this event is the object which was moved.
The [[event system#Event source|source]] of this event is the [[object]] which was moved.


==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
local obj = createObject(5239, -2417.22339, -606.70374, 132.56250)
local obj = createObject (5239, -2417.22339, -606.70374, 132.56250)
moveObject(obj, 3000, -2417.22339, -606.70374, 137.56250)
moveObject (obj, 3000, -2417.22339, -606.70374, 137.56250)


addEventHandler("onClientObjectMoveStop", obj,
addEventHandler ("onClientObjectMoveStop", obj,
     function()
     function ()
         outputChatBox("stopping moving object")
         outputChatBox ("Object stopped moving!")
     end
     end
)
)
</syntaxhighlight>
</syntaxhighlight>
==Requirements==
{{Requirements|n/a|1.5.8-rc20811|}}


==See Also==
==See Also==

Latest revision as of 17:27, 7 November 2024

This event is triggered when an object's movements stop.

Parameters

None.

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 ("onClientObjectMoveStop", obj,
    function ()
        outputChatBox ("Object stopped moving!")
    end
)

See Also

Client object events


Client event functions