In a mission, the nominal configuration is one PC control unit and one or several Vigilant drones.
It is easy to use, the player takes control of the vigilant through the PC controler.

For mission creators and script makers, it is possible to use it in a different way:

-In the mission editor, create a mission with the Vigilant with the engine started and flying in the air:
In the init field of the Vigilant, paste the following line of code:
	this engineon true; this setpos [getpos this select 0, getpos this select 1, 10]
The engine will be started, and the Vigilant will be flying at 10 meters high.

-You can also dispense yourself of using the PC control unit in the folowing way:
by adding an action for the player, or to an object.
In the script launched by the action, paste the following line of code:
	[_this select 0] exec  "\OFrP_Objets\Scripts\StartPCcontrol.sqs"

-It is also possible to control the Vigilant by the use of scripts, for example in the case of a cutscene or intro.

-Each Vigilant has the following global variables:

Vigilant%1Altitude	Height in flight  	from 0 to 200 meters	no limits by script

Vigilant%1Vitesse	Speed	   		from 0 to 20 meters/seconde	no limits by script

Vigilant%1Drift		Drift	  		from -1  1 degrees		no limits by script, a little hairy, because it works with a cumulative loop (+1 every 0.01 seconds)

Vigilant%1Zoom 		Camera zoom 		from 0.01 to 1			Never input 0 (OFP would be killed), stay away from values > 5

Vigilant%1Rotation	Rotation camra    	from - 50 to 50		If you input values outside this range, you risk to experience strange results.

Vigilant%1Updown	Camera up/down   	from -15000 to 15000	If you input values outside this range, you risk to experience strange results.

%1 represents the ID of each vigilant, it starts at 0 and it is the order of creation in the editor. Wich means the variables for the first vigilant will be like this:

Vigilant0Altitude		
Vigilant0Vitesse		
Vigilant0Drift		
Vigilant0Zoom 		
Vigilant0Rotation		
Vigilant0Updown	

all of this is done with a vigilant with the engine started. If you want to have the dialogs, put the following line in your script:	
[player] exec  "\OFrP_Objets\Scripts\StartPCcontrol.sqs"

to close the dialog : closedialog 0


