Skip to content
NikkoJT edited this page Aug 18, 2023 · 2 revisions
File location f\fcs\fn_fcsInit.sqf
Enabled by default? No
Enable/Disable in init.sqf
Runs on client

This component adds some extra simulation aspects to vehicle fire control systems.

It adds an action for a Commander's Override, which allows the commander to point the gunner's aim at an object of their choosing. It also adds more detailed damage, with a chance for the vehicle to suffer an "FCS failure" - knocking out its laser rangefinder, zeroing, enhanced optics, and TC override - when hit by an anti-tank weapon. The failure can be reset by an engineer-trained player in the gunner's seat.

When the enhanced FCS is enabled on a vehicle in the mission, a briefing tab is automatically generated explaining how to use it.

How to enable

Open the file init.sqf, and find the "F3 - Commander's Override and FCS failure" section. This contains two example lines, commented out by default.

The first line is an example for a single vehicle; the second is for multiple. Vehicles are passed as object references, not classnames.

FCS can be enabled mid-mission and on newly-created vehicles. Make sure the function is run on all clients including JIP.

Parameters

f_fnc_fcsInit only takes a single paramater:

# Name Type Default Description
0 _vehicle object required A vehicle to add FCS to

Usage

[vehicle] call f_fnc_fcsInit; Single vehicle, in a script that runs on all machines, such as init.sqf

{ [_x] call f_fnc_fcsInit } forEach [vehicle1, vehicle2, vehicle3]; Multiple vehicles, as above

[_vehicle] remoteExec ["f_fnc_fcsInit",0,true]; Single vehicle, in a script that only runs on one machine

Clone this wiki locally