Unable to Convert from 'TMesh' to 'Int'

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah I am, one lesson I learnt the hard way LOL! Here is the TBullet 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.