Search the Community
Showing results for tags 'lawman'.
Found 4 results
-
A week or so ago I saw my key bindings reset. I was a bit annoyed but it had happened before so I just re-did them and carried on. However, I have just now gone into the editor and seen that none of the missions under my user profile are shown. I have checked the launcher, and I am definitely loading the "Lawman" profile, of which there is only one. I have also checked the Arma 3 - Other profiles / Lawman / missions folder to confirm my mission files are still there, which they are. Not sure what to do from here on. I tried saving a new mission file to see where it ended up, and It appears to have been placed in the following directory: C:\Program Files (x86)\Steam\steamapps\common\Arma 3\Missions Have BIS changed something so mission files are no longer local to profile? Cheers, Law
-
Better alternative to "assignedTarget"
lawman_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Looking for some advice on what functions to use. Currently I have attached a "FIRED" event handler to each member of a recon team. Once the trigger fires, it assesses what the unit is shooting at, and if the target belongs to the WEST side, it has 'positively identified' NATO in the area. //player sideChat (format ["%1",_this]); _unit = (_this select 0); _group = group _unit; _leader = leader _group; _target = assignedTarget _unit; player sideChat (format ["Target: %1",_target]); //player sideChat (format ["Side: %1",(side _target)]); //player sideChat (format ["Qrf1: %1",qrf1Sent]); //player sideChat (format ["Qrf2: %1",qrf2Sent]); if ((side _target) == WEST) then { if (reconOnSite) then { if (!qrf1Sent) then {_aaq = execVM "law\dispatchQrf1.sqf";}; if (!qrf2Sent) then {_aar = execVM "law\dispatchQrf2.sqf";}; }; } else { if ((reconOnSite) && (!qrf1Sent)) then {_aad = execVM "law\dispatchQrf1.sqf";}; }; Hence; if the recon team is only firing upon local militia, a small QRF is needed. If the recon team is in contact with NATO forces, a large one. The problem is that assignedTarget appears to rely upon the group leader specifically directing one of the units to fire upon the target. If the unit simply sees an enemy and fires of it's own initiative, the target is returned as 'objectNull' and the script fails. In most cases, this isn't a problem. But the recon team is only small, and if the group leader is killed before this happens it might cause problems. Is there a better way of assessing what the unit is firing at without having a target assigned? -
Group name not recognised (type string, expected group)
lawman_actual posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
A recurring problem that i seem to run into is I don't know how to use group names as group names when writing scripts. Let me explain: In the eden editor, I have set the name of a group; by opening the interface for the group (double click on the icon above group leader) and entering something in the 'callsign' field. However, if I now go to write a script that requires the name of that group, i can't seem to format it in such a way that the command will accept the name I have inputted. For example, here is a snippet from the mission: _group = "R Rustam 1 - Alpha"; _leader = leader _group; _passangers = _group - _leader; _leader assignAsDriver qrf_w1; {_x assignAsCargo qrf_w1} forEach _passangers; _group orderGetIn true; What i can't get to work is the leader command, because no matter how I format the group name it doesn't seem to want to accept it. I believe the following has been tried without success: _group = "R Rustam 1 - Alpha"; _group = "Rustam 1 - Alpha"; _group = R Rustam 1 - Alpha; _group = Rustam 1 - Alpha; -
I'm looking for help making an animation look nice. I've got a scenario where players have the option (via action menu) to jump down from a wall thats about 5m height. I've found the animation for jumping from the back of the cargo truck which fits in nicely: AcrgPknlMstpSnonWnonDnon_AmovPercMstpSrasWrflDnon_getOutHigh The problem is that the animation doesn't start from a point an jump forward. Rather, it starts at the end-point, teleports the player back and up and then starts the jump animation. Now naturally I've worked out the right sort of distance and height the jump occurs from so I can just teleport the player to the end-point and initiate the animation. However, the teleport is noticable, and it looks...well kind of awful. I'm hoping somebody has a method of overcoming this or perhaps knows of a different way that doesn't use this particular animation. Here's what I have so far: /////////////////// FIND INFO ABOUT UNIT /////////////////// _unit = (_this select 0); _bearing = getDir _unit; _startPosATL = getPosATL _unit; /////////////////// ASSESS JUMP VIABILITY /////////////////// _jumpDistanceLateral = 1.75; _startHeight = _startPosATL select 2; _endHeight = 0; _jumpEndPoint = [_startPosATL,_jumpDistanceLateral,_bearing] call BIS_fnc_relPos; _jumpEndPoint set [2,2.6]; _lineStartZ = (_startPosATL select 2) + 0.5; _lineEndZ = 0.5; _lineStart = [_startPosATL select 0, _startPosATL select 1,_lineStartZ]; _lineEnd = [_jumpEndPoint select 0, _jumpEndPoint select 1,_lineEndZ]; And then: if (!lineIntersects [_lineStart,_lineEnd]) then { _cam switchCamera "Internal"; camUseNVG true; sleep 0.5; setAccTime 0.1; _unit allowDamage false; _unit switchMove "AcrgPknlMstpSnonWnonDnon_AmovPercMstpSrasWrflDnon_getOutHigh"; _unit setPosATL _jumpEndPoint; }; sleep 3; _unit allowDamage true; setAccTime 1; player switchCamera "internal"; camDestroy _cam; Note that the camera and time slowing is just so I can observe what it looks like from the point of view of someone else. YES this mission is multi-player so I can't just ignore it and stick to first person. YES I have run the sequence with time ACC set to 1.0 and yes the teleport is still visible at this speed.