GPIO AUX and Lua script

If I wanted to generate a pulse when RC11 is high for example, from one of the Main out or Aux pins. The next pulse will only happen when the user switches RC11 to low first and then high again. Do I still need to configure it as Relay style? Do I need to map the RC11_OPTION,28? or SERVO7_FUNCTION,-1 is sufficient.

How do I make a delay and change the pin state? Can I use the relay script commands, example toggle after a delay?

# https://ardupilot.org/copter/docs/common-gpios.html#version-4-2-and-later
BRD_PWM_VOLT_SEL,0 # 3.3V
RC11_OPTION,28 # Relay1 On/Off
RELAY1_DEFAULT,0
RELAY1_FUNCTION,1 # Relay, save and refresh
RELAY1_PIN,107 # MainOut7
SERVO1_FUNCTION,33 # M1
SERVO2_FUNCTION,34 # M2
SERVO3_FUNCTION,35 # M3
SERVO4_FUNCTION,36 # M4
SERVO5_FUNCTION,37 # M5
SERVO6_FUNCTION,38 # M6
SERVO7_FUNCTION,-1 # setting a PWM/SERVO/MOTOR output to be a GPIO function

image