Use the camcreate command:
name = "flarered" camcreate [X,Y,Z]
For example:
flare1 = "flarered" camcreate [ 3000 , 1500 , 50 ]
Place this in a script or trigger and a flare will be created at 3000/1500 in a height of 50 meters.
You can get the position from the mission.sqm. Place an object where you want to have the flare copy the coordinates (attention: in mission.sqm they're written [X,Z,Y] not [X,Y,Z] so you've to replace the height) and delete it.
You can also use a trigger and copy it's position.
I'm not sure about if you can write:
name = "flarered" camcreate [object1, 50]
What's up with this mates?
Greetz
Plage