I've been trying to make a similar script, but it causes CTDs. The part that makes it crash is the recursive call to the same function via timevent_add. It consistently causes CTDs on map transitions. Have you run into this issue? Were you able to solve it if so? And if you haven't run into it, can I see the ground trap script?
If you mean Ag's trap script he put out a long time ago, I haven't personally tried it. Interesting if that causes CTDs. Are you trying it on a new map or an existing ToEE map?
I was trying to use it on existing ToEE maps (namely, Nulb Exterior and Hommlet Exterior). Well, I've managed a workaround for what I was trying to do, but it's implemented in a different way now. I was hoping to avoid doing it, since it involves littering the map with the Generic Spawner object, but oh well, at least the CTDs are gone.