I made this simple script to make it easier for all missionmakers to create missions which contain capturing of one or multiple flags. This script can not be used to create conquest missions. Flags have to be captured one after the other. It is impossible to recapture a flag.
assault one or multiple flags
Copy the included "AssaultFlags" folder into your mission folder.
Place 3 objects on the map.
Name them obj1, obj 2 and obj3
Put this in the init of obj1:
_null = [obj1, 120, 10, [obj2, obj3], 1200, east, west, false, false, true, false] execVM "AssaultFlags\assault.sqf";Short description of the parameters:
2: number of tickets to capture
3: radius in which the flag is capturable
4: list of other objects that shall be captured
5: time until defenderteam wins if attacker can not capture all flags
8: true if the time shall be resetted if a flag is captured, realmissiontime could be n*missiontime
9: true if 1 player shall capture a flag in same time like 2 players
10: true if a flag shall increase tickets if defenders are around
11: true if flag shall increase tickets if attackers are not present (if true 10 is ignored)
If you only want to capture one flag use this:
_null = [obj1, 120, 10, , 1200, east, west, false, false, true, false] execVM "AssaultFlags\assault.sqf";
I am happy to hear feedback!
Credits & Thanks:
Thanks harbingerxy to request this script and help report me the bugs + testing.
- initial release
- Armaholic forums