-
Notifications
You must be signed in to change notification settings - Fork 8
Lucy Move functions
Migoyan edited this page Sep 1, 2022
·
7 revisions
Ajouter un waypoint à un groupe
Exemple
veh_group = [
getMarkerPos "mkr_group_vehicle", UNIT_SIDE,
["rhs_btr80_msv"],
["rhs_msv_armoredcrew"],
[["rhs_msv_armoredcrew"]],
[["rhs_msv_rifleman", "rhs_msv_rifleman"]],
true,
0,
15.0,
["NONE", 0, 0]
] call GDC_fnc_lucySpawnGroupVehicle;
_waypoint = [veh_group select 0, getMarkerPos "mkr_move", 10, "SAD", "NORMAL", "AWARE", "RED", "RANDOM"] call GDC_fnc_lucyAddWaypoint;
Description:
Add a waypoint to a group.
You can set "RANDOM" to formation parameter to get a random formation
Parameter(s):
0 : GROUP - group
1 : ARRAY - Waypoint position (typically, a marker position)
2 : NUMBER - Waypoint radius position
3 : STRING - Waypoint type (MOVE, DESTROY, CYCLE, ...)
4 (optional): STRING - Waypoint speed (UNCHANGED, LIMITED, NORMAL, FULL) - Default is UNCHANGED
5 (optional): STRING - Waypoint behaviour (UNCHANGED, CARELESS, SAFE, AWARE, COMBAT, STEALTH) - Default is UNCHANGED
6 (optional): STRING - Waypoint combat mode (NO CHANGE, BLUE, GREEN, WHITE, YELLOW, RED) - Default is NO CHANGE
7 (optional): STRING - Waypoint formation (NO CHANGE, RANDOM, COLUMN, STAG COLUMN, WEDGE, ECH LEFT, ECH RIGHT, VEE, LINE, FILE, DIAMOND) - Default is NO CHANGE
8 (optional): NUMBER - Waypoint completion radius - Default is 30 meters
9 (optional): ARRAY - Waypoint timeout [min, mid, max] - Default is [0,0,0]
10 (optional): ARRAY - Array [Waypoint condition, Waypoint statement] - Default : ["true", ""]
Returns:
Return the waypoint
_infantry = [getMarkerPos "mkr_group_inf", UNIT_SIDE, ["CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Commander"]] call GDC_fnc_lucySpawnGroupInf;
[_infantry, [getMarkerPos "mkr_1", getMarkerPos "mkr_2", getMarkerPos "mkr_3", getMarkerPos "mkr_4", getMarkerPos "mkr_5", getMarkerPos "mkr_6"], "FULL"] call GDC_fnc_lucyAddWaypointListMoveCycle;
Description:
Add a list of waypoints to a group. Waypoints are only Move waypoints which loop with the first
Parameter(s):
0 : GROUP - group
1 : ARRAY - Array of positions
2 (optional): STRING - Waypoint speed (UNCHANGED, LIMITED, NORMAL, FULL) - Default is LIMITED
3 (optional): STRING - Waypoint behaviour (UNCHANGED, CARELESS, SAFE, AWARE, COMBAT, STEALTH) - Default is SAFE
4 (optional): STRING - Waypoint combat mode (NO CHANGE, BLUE, GREEN, WHITE, YELLOW, RED) - Default is RED
5 (optional): STRING - Waypoint formation (NO CHANGE, COLUMN, STAG COLUMN, WEDGE, ECH LEFT, ECH RIGHT, VEE, LINE, FILE, DIAMOND) - Default is COLUMN
6 (optional): STRING - Waypoint completion radius - Default is 30 meters
7 (optional): STRING - Waypoints timer between waypoints - Default is [0,0,0] for each waypoint - Exemple with 3 waypoints [[10,20,30], [0,0,0], [60,120,180]]
Returns:
Nothing
inf_group1 = [getMarkerPos "mkr_group_inf", UNIT_SIDE, ["CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Commander"]] call GDC_fnc_lucySpawnGroupInf;
[inf_group1, [getMarkerPos "mkr_1", getMarkerPos "mkr_2", getMarkerPos "mkr_3"], UNITS_BEHAVIOUR] call GDC_fnc_lucyGroupRandomPatrol;
inf_group2 = [getMarkerPos "mkr_group_inf", UNIT_SIDE, ["CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Commander"]] call GDC_fnc_lucySpawnGroupInf;
[inf_group2, 'mkr_zone', UNITS_BEHAVIOUR] call GDC_fnc_lucyGroupRandomPatrol;
Author: Mystery
Description:
Create an infinite random patrol for a group with defined points or in an area.
Parameter(s):
0 : GROUP - group
1 : STRING/ARRAY - Area marker name or an array of positions (they will be selected randomly)
STRING : Marker name
ARRAY : List of position OR List of marker name
2 (optional): ARRAY - Array of group move & combat parameters - Default : ["MOVE", "LIMITED", "SAFE", "RED", "COLUMN"]
3 (optional): ARRAY - Blacklist, only compatible if the 1) parameter is used as Marker name. This array must contain
Object - trigger
String - marker name or special tags names: "water" - exclude water, "ground" - exclude land
Array - in format [center, radius] or [center, [a, b, angle, rect]]
Location - location.
Returns:
Nothing
inf_group4 = [getMarkerPos "mkr_group_inf", UNIT_SIDE, ["CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Commander"]] call GDC_fnc_lucySpawnGroupInf;
[inf_group4, 'mkr_big_zone', 5, UNITS_BEHAVIOUR] call GDC_fnc_lucyGroupRandomPatrolFixPoints;
Description:
Create an infinite patrol between random defined points for a group.
Points are defined at the beginning of the mission.
Parameter(s):
0 : GROUP - group
1 : STRING - Marker name
2 : NUMBER - Number of points to generate in the area
3 (optional): ARRAY - Array of group move & combat parameters - Default : ["MOVE", "LIMITED", "SAFE", "RED", "COLUMN"]
Returns:
Nothing
_group = [getMarkerPos "mkr_group_inf", opfor, ["CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Commander"]] call GDC_fnc_lucySpawnGroupInf;
[
_group,
[[7507.22,10702.8,0],[7639.91,10723,0]],
"true",
[0,0,0],
["NORMAL","AWARE","YELLOW"],
"NO CHANGE",
"SAD",
["FULL","COMBAT","RED"],
"NO CHANGE",
"",
0
] call GDC_fnc_lucyReinforcement;
Author: Sparfell
Description:
Assign a reinforcement Path to a group with possibility to execute code and/or patrol upon reaching final destination
Parameter(s):
0 : GROUP - the affected group
1 : ARRAY - Array of WP positions
2 (optional): STRING - condition before the group starts its move - Default is "true"
3 (optional): ARRAY - time before the group starts its move [min,mid,max] - Default is [0,0,0]
4 (optional): ARRAY - Array for group travel waypoints behaviour [speed, behaviour, combat mode] - Default is ["NORMAL","AWARE","YELLOW"]
6 (optional): STRING - travel group formation (NO CHANGE, RANDOM, COLUMN, STAG COLUMN, WEDGE, ECH LEFT, ECH RIGHT, VEE, LINE, FILE, DIAMOND) - Default is "NO CHANGE"
+ (optional): STRING - Type of the last WP - Default is "SAD"
7 (optional): ARRAY - Array for group last waypoint behaviour [speed, behaviour, combat mode] - Default is ["FULL","COMBAT","RED"]
8 (optional): STRING - last WP group formation (NO CHANGE, RANDOM, COLUMN, STAG COLUMN, WEDGE, ECH LEFT, ECH RIGHT, VEE, LINE, FILE, DIAMOND) - Default is "NO CHANGE"
9 (optional): STRING - code executed when the group reaches its last waypoint - Default is ""
10 (optional): NUMBER or STRING - Default is 0
NUMBER : radius. If > 0 the group will patrol around its last waypoint in the given radius (predefined path)
STRING : marker. The group will patrol randomly in the given marker
11 (optionnal): NUMBER - Waypoint completion radius - Default is 0
Returns:
Nothing
_veh = [[6482.23,10619.5,0],blufor,"B_Heli_Transport_01_F",["B_Helipilot_F"],90,["FLY",50,0]] call GDC_fnc_lucySpawnVehicle;
_veh = _veh#1;
_group = [[6688.85,10837.9,0],blufor,["B_Soldier_TL_F","B_Soldier_F","B_Soldier_F","B_soldier_AR_F","B_soldier_LAT_F"]] call GDC_fnc_lucySpawnGroupInf;
[
_veh,
_group,
[[7354.54,10644.9,0]],
[[185.324,10333.1,0]],
["NORMAL", "CARELESS", "GREEN"],
"true",
[0,0,0],
"",
true
] call GDC_fnc_lucyTransportReinforcement;
Author: Sparfell
Description:
Load a group in a vehicle in order to be transported to an area
Parameter(s):
0 : OBJECT - transport vehicle
1 : GROUP - infantry transported in cargo
2 : ARRAY - Array of positions to go to unload position - Last position is unload position
3 (optional): ARRAY - Array of positions to go out of the area - Default is []
4 (optional): ARRAY - Array for vehicle waypoints behaviour [speed, behaviour, combat mode] - Default is ["NORMAL", "CARELESS", "GREEN"]
5 (optional): STRING - condition before the vehicle starts its move - Default is "true"
6 (optional): ARRAY - time before the vehicle starts its move [min,mid,max] - Default is [0,0,0]
7 (optional): STRING - code executed when the vehicle reaches its unload waypoint - Default is ""
8 (optional): BOOL - Enable/Disable delete of vehicle after action - it must be more than 3km of each player - Default is true
9 (optionnal): NUMBER - Waypoint completion radius - Default is 0
Returns:
Nothing