Progetto H — API Reference API & Scripting Documentation
Function Network authority Fast

Actor:TranslateTo

Smoothly moves this actor to a location over a certain time

Syntax

Lua
my_actor:TranslateTo(location, time, exp = 0)

Parameters

Name Type Default Description
location Vector
time float Time to interpolate from current location to target location
exp optional float 0 Exponent used to smooth interpolation. Use <code>0</code> for linear movement