Information on how to make missions using the Artillery Module can now be found on this page.
Enjoy.
Information on how to make missions using the Artillery Module can now be found on this page.
Enjoy.
So here's the scoop:
I'm trying to set up a direct fire mission, and have a script put together as follows
Code:_myBattery = _this select 0 _targetUnit = _this select 1 _WPBarrage = [“IMMEDIATE”, “WP”, 1, 10]; _targetPos = getPosASL _targetUnit; [_myBattery, _targetPos, _WPBarrage] call BIS_ARTY_F_ExecuteTemplateMission; hint format ["%1, %2, %3",_Targetpos, _myBattery, _targetUnit] Exit
In game I have a vehicle that I am using as the target referenced _targetUnit
An artillery game logic referenced _myBattery, which is synched to the group leader of four US mortars with the WP magazine added
and the whole thing is triggered by a radio trigger.
And it doesn't work
Any ideas? It's my first script since the old OFP days so things may be rusty
EDIT: On top of that, if I use the line:
[["artillery_barrage"], player, [[_myBattery, [3]]]] call BIS_SOM_addSupportRequestFunc;
(where _myBattery references the leader of the mortar team, not the game logic) (tried that and it didn't work), it tells me the location is outside the firing envelope no matter where I click on the map.
Last edited by DaveP; Jun 1 2009 at 21:57.
DaveP: The script looks fine but your target may not be in range. How far away is it?
EDIT: You need to reference the Artillery Module game logic.
Last edited by Headspace; Jun 1 2009 at 22:14.
I've tried within 500m, I've tried a km away; I've tried distances that the system lets me target using the manual aiming system, but for some reason the AI is playing dumb on it.
(Of course, all this said, the Game logic system is a great idea and the effects are great, especially for the WP rounds)
EDIT: It seems the only solace I have is using the virtual artillery system generated by SOM
[["artillery_barrage"], player, [[]]] call BIS_SOM_addSupportRequestFunc;
It works perfectly. Not exactly what I'm after, though.
Last edited by DaveP; Jun 1 2009 at 22:06.
Just noticed this. You have to reference the Artillery Module game logic.(where _myBattery references the leader of the mortar team, not the game logic)
Try this, too:
That will let you use the SOM method with your battery.Code:[["artillery_barrage"], player, [[_myBattery, [1,3,4,7,8,9]]]] call BIS_SOM_addSupportRequestFunc;
Could somebody please post a simple mission with arty that can be opened in the editor. Despite the documentation Im unable to get it to work.
Headspace,
Could you please post a mission showing us how to use at least virtual artillery?I have tried to use it as your tutorial but i cant make it!
Using Virtual Artillery through SOM is easy, just make a trigger with a few seconds to activate (to make sure it activates after the SOM package) and then on activation put in:
[["artillery_barrage"], player, [[]]] call BIS_SOM_addSupportRequestFunc;
Then just set up SecOps the usual way (make the Secondary Ops GL, then sync it to the player)
and that's it! Contact SecOps and you'll have one artillery strike available