TranslateObjectCoords
Moves an entity with a constant speed.
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
obj | object | - | ||
destination | vector3 | - | The destination coords, you can also use GetOffsetFromEntityInWorldCoords | |
duration | number | - | Total duration in ms |
Dont need to be called every frame
Example
local offset = GetOffsetFromEntityInWorldCoords(obj, 2.0, 0.0, 0.0)
TranslateObjectCoords(obj, offset, 5000)
Last update: June 6, 2023
Created: June 6, 2023
Created: June 6, 2023