- Documentation
- Shared functions
- stopObject
Function
stopObject
Stops a movement started with moveObject; the object stays where it was at that moment.
Syntax
bool stopObject(object theobject)Arguments
theobjectobject- The object.
Returns
true on success.
Example
local lift = createObject(3095, 0, 0, 3)
moveObject(lift, 10000, 0, 0, 30)
setTimer(function() stopObject(lift) end, 4000, 1)