Jump to content
Sign in to follow this  
Modinthalis

Can't get any scripts to work

Recommended Posts

Inspired by

I created a pretty much identical mission.

I set up a trigger, which activates upon a vehicle presence, then uses the command:

_nil = [] execVM "tyre.sqm"

my tyre.sqm is in my mission folder, and it looks like this:

_bomb = "BO_GBU12_LGB"

_explosion = _bomb createVehicle position IED;

IED is the name of a heap of tyres.

But nothing happens. I also tried to trigger it with radio alpha, but again nothing happens.

Another problem is the artillery module. I have not once got it to work.

I set up my artillery, for example 3x M119. I make 2 of them subordinate to the lead gun. I group the artillery to the artillery module. I create a trigger, activated by radio bravo, which runs my artie.sqm in my mission folder:

_nil = [] execVM "artie.sqm"

Here is an example of my artie.sqm

_targetPos = getPosASL _targetUnit;

_heTemplate = ["IMMEDIATE", "HE", 0, 15];

[_battery, _targetPos, _heTemplate] call BIS_ARTY_F_ExecuteTemplateMission;

I can get artillery support with SOM, but that isn't what I am aiming for.

Can anyone shed any light on this?

Share this post


Link to post
Share on other sites

Do NOT use the .sqm suffix for scripts as it's meant for the mission file only. The tutorial was talking about sqf.

This thread should be the mission editing & scripting section, addon making is another business completely.

Share this post


Link to post
Share on other sites

Hey Modin, welcome to the forums.

I believe what you're trying to do should be done in .SQF, not ".sqm" which is a format used for mission data.

null = [] execVM "tyre.sqf"

//tyre.sqf

_bomb = "BO_GBU12_LGB";

_explosion = _bomb createVehicle position IED;

Same goes for your Arty script, name should be .sqf not .sqm.

In future, these types of posts should go here - http://forums.bistudio.com/forumdisplay.php?f=93

Share this post


Link to post
Share on other sites

I changed all relevant .sqm to .sqf, but it still doesn't work. I wonder why...

Sorry about posting in the wrong forum, I don't know how that happened... searched in the right forums for my own thread before realizing my mistake :P

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×