I search a function for moving object

Blitz3D Forums/Blitz3D Programming/I search a function for moving object

Or

function movetowards(sourceentity,targetentity,speed#,how_close#)

pointentity sourceentity,targetentity
moveentity sourceentity,0,0,speed

if entitydistance(sourceentity,targetentity)<how_close# then return true else return false

end function