- Dokumentacja
- Funkcje wspólne
- isObjectMoving
Funkcja
isObjectMoving
Sprawdza, czy obiekt jest właśnie przesuwany przez moveObject.
Składnia
bool isObjectMoving(object theObject)Argumenty
theObjectobject- Obiekt.
Zwraca
true w trakcie ruchu.
Przykład
local gate = createObject(980, 0, 0, 3)
addCommandHandler("brama", function()
if isObjectMoving(gate) then return end
moveObject(gate, 2000, 0, 0, -3)
end)