lol use pointers^^
Code:
var vTemp = 0;
void getValue(var *value)
{	
	*value = 10;	
}

...

getValue(&vTemp);