Yeah I am, one lesson I learnt the hard way LOL! Here is the TBullet Type:
I'm guessing that I cant Extend my Types from the TEntity Type, I think I'll have to write my Types the way you have suggested above, by including the TEntity within the Types, not extending. For some reason I dont think it likes the CopyEntity being called within the Type.
Function Create:TBullet(p:TPlayer) Local ent:TBullet = New TBullet ent.px = p.px ent.py = p.py ent.pz = p.pz ent.yaw = p.yaw ent.thrust = p.currentWeapon.thrust ent.model:TMesh = .CopyEntity(p.currentWeapon.model) ent.EntityListAdd(entity_list) .RotateEntity ent.model,0,ent.yaw,0 .PositionEntity ent.model,ent.px,ent.py,ent.pz Return ent End Function
I'm guessing that I cant Extend my Types from the TEntity Type, I think I'll have to write my Types the way you have suggested above, by including the TEntity within the Types, not extending. For some reason I dont think it likes the CopyEntity being called within the Type.