ph_setautodisable(lmaxlin,lmaxang,lminframes, lmintime)
with
lmaxlin: maximum linear motion per frame that will be considered as resting
lmaxang: maximum angular motion per frame that will be considered resting
lminframes: minimum number of frames resting before entity gets disabled
lmintime: minimum time in secs before resting entity gets disabled
Default: ph_SetAutoDisable(0.01, 0.008, 10, 0.1);
When do you get error messages ?