use a type_def struct to make your variables to a certain scope and thus making sure it doesnt point to any core variables defined in the engine. e.g.

Code:
typedef struct 
{
	ENTITY* entAgent;
	int ID;
	var x;
	var result;
	var zpos;
	var timestamp;
	var exist;
	var dead;
	
} structMyVars;

structMyVars myVar;



To access use myVar.result, etc.. for all the members. I understand that this is not memory efficient if u mite need only one member sometimes. But u can do this for all ur normal variables.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook