The latest beta version has a script with such functions:

http://www.conitec.net/beta/entmove_c.htm