so there is no way to use it? =/
do you know how I can get this to work then?
require("scripts/class")
local class=CreateClass(...)
class.beginframe = 0
class.endframe = 301
class.animationspeed=0.35
function class:CreateObject(model)
local object=self.super:CreateObject(model)
model:SetRotation(Vec3(0,math.random(500)-1,0))
uninstancedframe=class.beginframe+math.random(class.endframe-class.beginframe)-1
object.frame=uninstancedframe
function object:Draw()
self.frame = self.frame + class.animationspeed * AppSpeed()
if self.frame>class.endframe then
self.frame=0
end
self.model:Animate(self.frame,1,0,1)
end
end