-
Notifications
You must be signed in to change notification settings - Fork 8
Lucy Move functions
TheShinriel edited this page May 15, 2018
·
7 revisions
Sécurise le lancement d'un script sur HC
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;
Paramètre | Type | Description | Valeur par défaut |
---|---|---|---|
script |
String | Fichier ou commandes à exécuter |
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
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
Description:
Create an infinite random patrol for a group with defined points or in an area.
Parameter(s):
0 : GROUP - group
1 : OBJECT - Area marker name or an array of positions (they will be selected randomly)
2 (optional): ARRAY - Array of group move & combat parameters - Default : ["MOVE", "LIMITED", "SAFE", "RED", "COLUMN"]
Returns:
Nothing
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