OnClientObjectMoveStart: Difference between revisions
Jump to navigation
Jump to search
(Add parameters section (without parameters)) |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client event}} | {{Client event}} | ||
{{ | {{Added feature/item|3.0159|1.5.9|1.5.8|20811|This event is triggered when an [[object]] starts moving.}} | ||
==Parameters== | ==Parameters== | ||
None. | |||
==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("onClientObjectMoveStart", obj, | addEventHandler ("onClientObjectMoveStart", obj, | ||
function() | function () | ||
outputChatBox("started moving | outputChatBox ("Object started moving!") | ||
end | end | ||
) | ) | ||
Line 22: | Line 22: | ||
==Requirements== | ==Requirements== | ||
{{Requirements|n/a|1.5.8- | {{Requirements|n/a|1.5.8-9.20811|}} | ||
==See Also== | ==See Also== |
Revision as of 11:15, 20 September 2021
20811
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 ("onClientObjectMoveStart", obj, function () outputChatBox ("Object started moving!") end )
Requirements
This template will be deleted.
See Also
Client object events
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled