#include "inc_misc_tools"
void main()
    {
    // Determine Target
    object oTarget = GetEnteringObject();
    if (!GetIsFriend(oTarget)) // Apply Trap only if not a friend of the trap.
        ApplyTrap(oTarget);
    }
