uint GetNumFrames()/ETHEntity

Returns the number of frames that the entity has. Used on entities with sprite cut (tiling).

// cut sprite into four columns and two rows
entity.SetSpriteCut(4, 2);
print("num frames: " + entity.GetNumFrames());

Output:

num frames: 8