Entity Color with Types?

Blitz3D Forums/Blitz3D Beginners Area/Entity Color with Types?

I'm sure this used to work, but now it seems to be causing problems (unless I've missed something.....)

Here's a simple firing Function, however, the EntityColor command gives an error of 'Variable Must Be a Type'...

Function drnfire()

SoundVolume drnfiresnd,1-(EntityDistance(drone,cam)/1000)
PlaySound drnfiresnd

		drnfiretime=MilliSecs()
				
			sctbul.bullet=New bullet
			sctbul\Sprite=CopyEntity(ionsprite)
					
					EntityFX sctbul\Sprite,25
					
					
				EntityColor sclbul\Sprite,240,200,0
					
					PositionEntity sctbul\sprite,EntityX(drone,1),EntityY(drone,1),EntityZ(drone,1),1
					PointEntity sctbul\Sprite,scout,EntityRoll#(scout,1)
					
					sctbul\range=1000			
		
End Function	


Ah! Sorry - solved it...

I was using the sctbul.bullet reference elsewhere!

I changed the pointer reference handle and it works fine!

Typo:

EntityColor sclbul\Sprite,240,200,0


should be...

EntityColor sc<b>t</b>bul\Sprite,240,200,0


Heh I gotta learn to quit coding earlier on in the evenings ;)

Thanks!