put wherever you want in your script, just make sure it is defined BEFORE you assign it to an enity or it will give an error--just like any function..it needs be declared before it is called/set