- 18:43, 8th February 2010
- Link
Ross,
To do this, you would need to place a "offboardSupport" marker on your map. Then, place a LUA script file (under Scripts) on your map.
Next, you can allow / disallow Artillery & Airstrikes by enabling or disabling them.
If you just place the offboardSupport marker on your map, and do not configure it, it will not be active when the mission starts, but it will allow us to add support for these functions through LUA.
In your LUA script, use the functions:
OFP:enableAirStrike and OFP:enableArtilleryStrike to enable each as you see fit.
For your purpose, if you simply enable the Artillery strike option, then that is all that will be available - air support cannot be used unless you choose to enable it.
Finally, once you have decided which supports to add, use these to configure how many of each type you want:
OFP:setAirStrikeCount
OFP:setArtilleryStrikeCount
(I apologize if my names are a little off - I am not at my modding PC at the moment, but the "set" prefix is definitely right).
Essentially, ensure that you:
1) Create an offboardSupport marker in your map
2) Add a LUA script container (if you do not already have one)
3) Use an "enable" function to enable the support type
4) Use a "set" function to set the number of available strikes
The as-you-type code editor should be able to help you walk through adding your choices for artillery / air strikes.
Best wishes.
Seperation | Anxiety
rn
rn"But I, being poor, have only my dreams. I have spread my dreams beneath your feet. Tread softly, for you tread on my dreams."
rn
rn- Yeats