added M242 command and some event collision control.