How exactly does Entity.GetCycle() work?

I have been trying to make a object move at certain locations when a specified frame comes up, but it will never happen because the Entity.GetCycle() returns a strange value that I don’t know how to use really.

(0)
(0.072170346975327)
(0.14416205883026)
(0.21633240580559)
(0.28832411766052)
(0.36031582951546)

(The values only seem to go from 0 to 1)

By that I’m kinda assuming that it is a percentage of all the frames? or does it mean something else? Please help :3

Define your definition of frame.

Well, go into model viewer and look for a sequence, Doesn’t it clearly say Frame number there?
And since Entity.SetCycle() works with frames, shouldn’t Entity.GetCycle() too?

If it goes from 0 to 1, use your common sense. :v:
Just take the frame you want from Model Viewer, divide it by the total number of frames in the sequences, and there you go.

[editline]05:04PM[/editline]

Also, are you sure SetCycle works with frame numbers? I’ve never used it much, but I remember it worked only with a value between 0 and 1, but maybe I was wrong.

I’ll try to do that then.

**[Entity.SetCycle

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.SetCycle)**

Wiki says it does that, but I’m not sure if it actually does it or not…

GetCycle is for the frames in an entity’s current animation. The idle animation has only 1 frame.

But the cycle I was having had 82 frames, so I don’t see how that will make sense.

Anyway I solved this, I got a number that was almost like 1 frame but in the form it need to be in :3

Correct me if I’m wrong, but is it possible this returns how long the current animation has played, and not which frame it’s on?