The method is called automatically when the property xTrigger is set to TRUE.
You can add code to the method Trigger, for example to set an output to send a hardware trigger signal to a real camera via cable.
Then the code does not change whether you use a real camera or trigger the target generation.