Movement before event if agent and intent. Code simplified shortened.