Originally Posted By: pararealist
OR maybe this (untested)
Code:
ENTITY*  create_scaled_entity( var Scale, STRING* model)
{
	ENTITY* tempEnt = ent_create(model, nullvector, NULL);
	if(tempEnt != NULL)
	{
		//scale all axis the same
		tempEnt.scale_x = Scale;
		tempEnt.scale_y = Scale;
		tempEnt.scale_z = Scale;
		//
		return tempEnt;
	}
	return NULL;
}



Doesnt make alot of sense to return NULL there, return the entity instead then, otherwise you might be right, this would be a better function laugh

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/