If you want them to wait until the player is closer, set up a "wait" AI package and "attack" package for them. Then add a trigger object so that when the player reaches a certain point, the attack package will be activated. Also, traps can have a faction setting, so that NPC/creatures of the same faction will not set off traps. It sounds like you want that anyway.