Is it possible to give the AI mortars and other kinds of support ?
Do I need to just build and link them ?
Is it possible to give the AI mortars and other kinds of support ?
Do I need to just build and link them ?
That's a low level AI thing which ALiVE doesn't touch. There are some good AI mods out there which will get AI to use artillery and mortars if they're available (e.g. AISS, bCombat, VCOM etc)
Bugger.
Thanks for the reply.
Ended up using this as "mortars.sqf" and run it from a trigger.
script=[mortar1,mortlist] execVM "mortars.sqf"; on repeated activation in a 1k circle around the mortar, when blufor is detected by opfor in the trigger area.
Just thought I'd throw this here in case someone else wanted a solution to the issue. Nothing worse than doing a search and finding a big thread about it, but no solution. ;)
_mortar = _this select 0; _targetArray = _this select 1; _target = _targetArray select 0; _theAmmo = getArtilleryAmmo [_mortar] select 0; _idx = 0; //-- prevents firing at aircraft if(isTouchingGround _target) then { //-- The number of times you want the _mortar to check for range while {(_idx < 5)} do{ _tgtPos = position _target; _isInRange = _tgtPos inRangeOfArtillery [[_mortar], _theAmmo ]; if (_isInRange) then { _mortar commandArtilleryFire [_tgtPos, _theAmmo , 1 ]; }; sleep 5; _idx = _idx + 1; }; };
I personally use the "Fire For Effect" script for artillery when playing ALiVE and it is quite pleasant. However you need to manually place your artillery and sync them so they don't get profiled and virtualise.