Beware ordnance modules

Workshop for all Mission Engineer Comrades. Home of the FA Mission Making Template.

Beware ordnance modules

Postby Pooter » Sat Nov 21, 2015 8:05 am

In my latest mission Tea Time I used about a dozen ordnance modules each synced to their own trigger with slightly different delays in order to make a pre-attack artillery barrage.

This broke the spectator scripts as well as the script that allows players to become zeus mid-mission.

How? no idea... But it does. If I remove the triggers or the ordnance or their synchronization everything works again.

So instead I removed all but one of the triggers and replaced the ordnance modules with cartridge modules with this code in their init:

Code: Select all
if(isNil ""artillery"") then {artillery = [];};z = artillery pushBack this;

Then I have a trigger that on activation does:
Code: Select all
[] call goArty;

And a function in my init.sqf that does:
Code: Select all
goArty = {
_x spawn {
    sleep (random 10);
    _pos = "ModuleOrdnanceHowitzer_F" createVehicle (position _this);
} forEach artillery;

So instead it dynamically creates the ordnance modules which then fire immediately.

Why does this fix it? no idea... but after I did this the barrage stopped breaking zeus so whatever.
Posts: 116
Joined: Tue Jul 28, 2015 2:26 am

Re: Beware ordnance modules

Postby Eagle_Eye » Sat Nov 21, 2015 9:11 am

Nice one.

I have a funny feeling that we saw similar problems with an old run of "hold the line", including a massive drop in sfps.
I just remade that one from scratch, so I never figured out the problem.
User avatar
Posts: 209
Joined: Wed Feb 11, 2015 2:35 am
Location: Cork, Ireland

Return to ArmA 3: Mission Making & F3 Development

Who is online

Users browsing this forum: No registered users and 1 guest