I guess what you are trying to do is make the wire live for 5 seconds when the trigger is triggered ? And you are useing the animate_equipment_electric-switch-nopulse
If so try this
wireelectricution:
While(1) //dosen't end
{
$alliesright_trigger waittill trigger
$alliesright_switch anim turn
wait .2 // maybe adjust this
$alliesright_switch anim on
$alliesright_switch loopsound alarm_switch
for(local.i=1;local.i<= 5;local.i++) // loops 5 times
{
$alliesright_wire volumedamage 10
wait 1
}
$alliesright_switch stoploopsound
$alliesright_switch anim off
} // loops back here but I add end anyway
end
BTW.
I also had a question on Player shootable triggers.
I have a Trapdoor that opens only when shot. but the problem comes when you shoot it multiple times.. it spins the 90 degrees again instead of waiting to close. The more I shoot it the more it Rotates.