i dodnt kow sure but you could try yhis

Code:
function ent_view(ENTITY* ent)
{
	my = ent;
	
}

function main()
{
	...
	ent_view(ent1);
	...



"empty"