What it does
animation.create brings a animation object into being: it is how the rest of the script comes to have one. It takes id, prop, fps and a value. The accepted values are float, vector3, color3 and quaternion.
Signature
animation.create(id, prop, fps, "float"|"vector3"|"color3"|"quaternion")Arguments
idpropfps"float"|"vector3"|"color3"|"quaternion"Accepts:
floatvector3color3quaternion
Example · generated
function start() { animation.create('main', 'position', 30, 'float');}animation.create is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.