Search the Community
Showing results for tags 'setwaypointstatements'.
Found 3 results
-
setWaypointStatements and Local Variable
clock_x posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hey, I am trying to get this script from Igneous01 to work for my mission: Now I wanted to do this, which obviously didn't work: I googled alot and tried this: Which didn't work either.. I also tried idiotic stuff like grouping the _dragger with the _dummy and then executing it on the whole group but this messed up the waypoint completely and the _dummy wouldn't move at all. Does anyone have an idea how I can get this to work? Help would be much appreciated. I only want the _dragger to drag the _injured near an extraction chopper and then stop the animations. Next step would be healing the injured or even better loading him in the extraction chopper while he is still unconsious, but I did not get this far. Cheers clockx -
setWaypointStatements is ruining my day...
fernandolvferreira posted a topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
So, I've been trying to script some waypoints for some teams... The problem is, I'm trying to script a condition into the waypoint, so the unit will only move after the condition has been fulfilled... The units should only move after a unit called TriggerAttack is dead, so I though "EASY!, (!alive TriggerAttack) should do the trick..." This is what I scripted: _wp = _group_east_3 addWaypoint[[3920.5579, 4488.0127, 0], 0, 1]; [_group_east_3, 1] setWaypointBehaviour "UNCHANGED"; [_group_east_3, 1] setWaypointCombatMode "NO CHANGE"; [_group_east_3, 1] setWaypointCompletionRadius 0; [_group_east_3, 1] setWaypointFormation "NO CHANGE"; [_group_east_3, 1] setWaypointSpeed "UNCHANGED"; [_group_east_3, 1] setWaypointStatements[""!alive triggerAttack;"", ""]; Now... As some of you guys might know, it didn't work... This is what I'm getting in the .RPT file: Please... Help me... I'm going nuts and my wife is threatening to divorce me if I don't finish this thing and go to bed... Thanks a lot!- 1 reply
-
- setwaypointstatements
- waypoints
-
(and 2 more)
Tagged with:
-
Dynamic getVariable in setWaypointStatements
usbstuck posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I would like to access a variable with getVariable in setWaypointStatements. However, the variable name is dynamic, because I don't know how many variables there will be set. Referring to this post I came up with the following: params ["_group", "_pos", "_type", "_additionalStatements"]; private ["_wp", "_ref", "_refString"]; _wp = _group addWaypoint [_pos, 0]; _wp setWaypointType _type; // Make sure chopper lands on the spot _ref = "Land_HelipadCivil_F" createvehicle (_pos); // Save reference to Helipad on group leader _refString = "land_"+ str random [0, 5000, 10000]; _group setVariable [_refString, _ref, true]; hint format ["Reference to helipad: %1", _refString, _ref]; // Use reference on group leader to clean up Helipad after landing call compile format ["_wp setWaypointStatements [""true"", ""deleteVehicle ((group this) getVariable '%1'); %2""]", _refString, _additionalStatements]; (_wp) This works. But I have 2 objections: 1) It's not super-easy to read 2) Adding another format inside the statement (eg: `hint format ["%1", _someVar]` ) will break it. Does anyone know a better way? Thanks! **Edit: Actually objection #2 does work :rolleyes: . It was a different error I got... So basically the only thing that remains of the question is if it can be done neater. But hey, maybe I should just get used to it ;)- 1 reply
-
- getVariable
- setWaypointStatements
-
(and 1 more)
Tagged with: