Unable to Convert from 'TMesh' to 'Int'

BlitzMax Modules Forums/MiniB3D/Unable to Convert from 'TMesh' to 'Int'

Hiya, a slight problem here rotating or generally manipulating objects which I have create, I'm extending from TEntity and using the Update() method to move my extended entities, so here is my code. Thanks for any help.

Function Create:TPlayer(file$)
Local ent:TPlayer = New TPlayer
ent.model = LoadAnimMesh(file$)
ent.EntityListAdd(entity_list)
End Function

Method Update()

If KeyDown(KEY_RIGHT)
px# = px# + 1
EndIf
If KeyDown(KEY_LEFT)
px# = px# - 1
EndIf

RotateEntity model,0,0,5 'Error here

End Method