you could make a unit with the model of the fire trap, and do the following:
- give it a very small attack range, maybe 75
- set the attack cooldown to something appropriate, maybe similar to the interval between spouts of flame
- change its 'stats - unit classification' field to 'walkable'.
- set its movement - speed base field to zero.
- set the sound - unit sound set field to 'none'
This way, when the units walk over it, the fire trap unit will attack them, and the player will be given the illusion that the unit is being burnt by the flame trap.