You could call phent_getvelocity, or else compare the z position between two frames:

var z1 = my_entity.z;
wait(1);
var z2 = my_entity.z;
if (z2 != z1) ....