setAnimationCurrentTime

Script::setAnimationCurrentTime

Sets the current playing time of an Animation played by an Entity.

Declaration

void setAnimationCurrentTime(Entity entity, float time);

Parameters

Name

Type

Description

entity

Entity

The Entity the Animation is played on. It must have a Renderable Component.

time

float

The time to set the current Animation to.

Returns

None.

Notes

If time is greater than the current’s Animation’s duration, the animation stops.