Hey - first post on OFPEC, site looks great so far I have to say, already read some interesting stuff on here
The reason for my post is I'm aiming to make a big mission - one where you start off in one of the tiny little islands at the south-west corner of the Sahrani Map (e.g. Isla de la Caja?), and go from island to island, town to town taking over all the bases/towns in the entire map. It works a bit like a single player CTI - You get money from holding towns, you order units and build up your forces, etc...
My problem is I have all these ideas for how I want my mission to work that I really want to use, but I have trouble with the scripting side; I'm still a pretty novice editor and so I run into a lot of problems when I'm trying to get stuff to work. Mainly stuff I've seen work before in other missions and am not sure how to get it working from scratch in my own.
So I was hoping that if I ask for help on the forums I might be able to get some expert advice...
There's three problems I've run into right now, and I'm still pretty early on in the mission:
First, I imagined that itd be too laggy to simply put all the enemy troops on the map at the start of the mission seeing as there would be hundreds of them (I'm aiming for it to be a really big mission ;D) so I wanted to put triggers in every town/base so that when BLUFOR gets close to them, that's when a script creates all the units in the town. I'm pretty sure this is how the old MFCTI in flashpoint created resistance fighters in every town when enemies approached.
But I ran into problem just trying to use createUnit
this is the script i wrote and was trying to use:
_______________________________________________________________________
rahmadiair1 = creategroup East
ra1 = rahmadiair1 createUnit ["SquadLeaderE", position rahmadiairlogic, [], 0, "FORM"]
ra2 = rahmadiair1 createUnit ["TeamLeaderE", position rahmadiairlogic, [], 0, "FORM"]
ra3 = rahmadiair1 createUnit ["SoldierEB", position rahmadiairlogic, [], 0, "FORM"]
ra4 = rahmadiair1 createUnit ["SoldierEB", position rahmadiairlogic, [], 0, "FORM"]
ra5 = rahmadiair1 createUnit ["TeamLeaderE", position rahmadiairlogic, [], 0, "FORM"]
ra6 = rahmadiair1 createUnit ["SoldierEB", position rahmadiairlogic, [], 0, "FORM"]
ra7 = rahmadiair1 createUnit ["SoldierEB", position rahmadiairlogic, [], 0, "FORM"]
exit
________________________________________________________________________
It created all the units at the Game Logic i specified, but they didnt respond when i shot near them? and when i shot them and killed them, ArmA crashed to desktop. I'm guessing my script has a lot of glaring errors in it
can someone please point me to a good tutorial on how to create a group of soldiers to garrison a town? or explain whats wrong with my newbie script...
Second problem is about reinforcing the player's army. The idea i came up with was i wanted all that stuff done through airports - for example, first the player has to take an airstrip, like the one on Rahmadi island.
Next, you order the troops through a building or an officer like you would in MFCTI, and it costs money depending on what you order. (You guessed it - I'm not exactly sure how to do this either.)
The way the troops are delivered is: once they are ordered, helicopter/s (uh60) are created at the corner of the map, with all of the troops you ordered in cargo. they take about 1 minute to get to the airstrip, where they drop off your troops and then fly away to be deleted once they're far enough away.
I was planning to use a paradrop.sqs script i found on the site to airlift in vehicles, and for aircraft they would just fly in and come under your control.
So - how could I learn how to set up that kind of purchasing system, and again my previous trouble with the createUnit command would be a problem when I'm trying to createUnit this blackhawk full of the troops you ordered ... and i'm not sure how to set waypoints for a unit I have created in a script, for example setting a "transport unload" waypoint for the blackhawk? how can i go about doing this?
Third, is the aforementioned money system. I've seen it working in MFCTI in flashpoint but I'm not sure where to start figuring out how to do it... any help on making this money system (getting money for holding towns, using it to purchase troops and equipment) would be greatly appreciated!!
Well, pretty long post with some long explanations, sorry if they're newb questions but I needed some help... hopefully if someone can help me I can move on to bigger and better problems
Thanks!