I PM'ed phelican, but I would be very interested in how I can make this happen. Here is some of what I need in pseudocode
I am building an Attack & Defend map (almost done) where OPFor has to destroy 2 fuel station docks to win (I may add more targets). That part works great. My question/dilema is how I want the BLUFOR team to win. There is a timelimit .sqf script that I have working, (used this forum post), but I don't see code or the "how-to" on making the mission end.
My thoughts are as follows:
Once I get feedback on that part of my dilema, I would also like to entertain a point system method for the BLUFOR to stop the attack threats.
POINT SYSTEM METHODIf a BLUFOR unit destroys a vehicle (jet, tank, etc) +50 points for BLUFOR
If a BLUFOR unit kills a player +100 points for BLUFOR
If a BLUFOR unit kills a Team Leader (Sergeant) +200 points for BLUFOR
When BLUFOR reaches 3500 points the threat is over and BLUFOR wins.
TIME LIMIT METHOD (only if player slots are under 16) - Still keep the point system in the ending condition, but if there are less than 16 players add the time limit of 30 minutes. Not sure if that can easily be done since players can join in and some may leave....
I am quite new to the scripting so I may not fully understand your reply, but I will do my best. My guess is 1 script can be written for point increments. For example:
For each Unit that dies I have this in the init line
not alive (unit) [points] execVM score.sqfSo each time that particular unit dies/is destroyed the script is called and it passes in points that are added to the BLUFOR team.
score.sqf // Script that passes in points for dead objects
_points = _this select 0;
Add points to the BLUFOR team and check accumlated points to end
|
I would need to know how I can make it so that if the OFPOR has casualties, self inflicted or from BLUFOR so that it will add points to the BLUFOR team as a whole. Then I need it to check the score periodically to determine if it should end the mission in BLUFOR victory.
Any help is apreciated. It will surely help develop a nice tactical team vs team map.