|Description:||Sets turret alignment, and (optionally) fires the specified number of rounds. Vehicle turrets return to default alignment after firing.|
Any defined fire arcs set using setFireArc are only considered for AI gunners.
|Syntax:||[vehicle, turret, [azimuth, elevation], notstabilized, rounds] call fn_vbs_setGunPosition|
|Return Value:||Boolean - Returns true, if firing is successful, or, if the function is called with only the vehicle as a parameter, if the vehicle is currently engaged in a firing sequence.|
When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.
_fired = [tank1,,[270,5],false,2] call fn_vbs_setGunPosition