Core/SAI: Add new distance to creature/gameobject events.

Added new events to trigger action when the creature/gameobject detects
another creature/gameobject within the specified distance. This is a
much cleaner implementation than using event update_ooc_los to perform
the check, and the event params are separated from the target params.