Copy the script and modify it so that the target is GetEnteringObject() instead of GetSpellTargetObject() or GetSpellTargetLocation() - I forget which it uses. Then place the script in the OnEnter event of your trigger.
It might require a little more tweaking but you've got the general idea.
EDIT
Change line 28 to read
location lImpact = GetLocation(GetEnteringObject());
instead of
location lImpact = GetSpellTargetLocation();
Modifié par Pstemarie, 30 juillet 2012 - 08:04 .