Jump to content

Falsche9

Member
  • Content Count

    38
  • Joined

  • Last visited

  • Medals

Community Reputation

11 Good

About Falsche9

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks Tajin - that works!
  2. Thanks again - that also doesn't work. BIS_fnc_UnitCapture is not suitable as I was trying to script a sailing dinghy with the "C_Boat_Civil_01_F" and steer it from cargo positions 1&2 so the helm switches sides as in reality. So far I have a moving sail and the mathematics done for velocity relative to wind/sail angle. I thought the steering would be the easy part! It's not so bad, I will just have to use the driver position instead.
  3. Thanks for reply but it doesn't work - boat has 0 velocity until loop is finished. How do BIS steer vehicles? Is there a script somewhere for WASD keys? I will try with setVelocityTransformation also.
  4. Anyone tried setVelocityTransformation ? setVelocityTransformation example /* Rope Towing Script for Arma3 --->> setVelocityTransformation Not a bad result with only a little stutter and better than either setVelocity or attachTo as all vectors/directions are matched without rigid link, but strage things can happen if the rope is too short or _time value is too low. 0 = [car1,car2] execVM "tow.sqf"; */ private ["_v1","_v2","_rope","_dist","_time","_spd","_v1_pos","_dir","_newPos","_arr"]; _v1 = _this select 0; _v2 = _this select 1; _rope = ropeCreate [_v1, [0,-3,0], _v2, [0,1.5,-1], 10]; _dist = 12; while {alive _v1} do { _time = 0.07;//set this too low and bungee effects! _spd = speed _v1; _v1_pos = getPosASL _v1; _dir = (getDir _v1) + 180; _newPos = [ (_v1_pos select 0) + _dist*sin _dir, (_v1_pos select 1) + _dist*cos _dir, _v1_pos select 2 ]; _arr = [getPosASL _v2, _newPos, velocity _v2, velocity _v1, vectorDir _v2, vectorDir _v1, vectorUp _v2, vectorUp _v1, _time]; if (_spd > 1) then {_v2 setVelocityTransformation _arr}; }; edit: something needs adjusting in the array - works well on flat terrain nut goes FUBAR on hills - towed car floats.
  5. How do I change the yaw on a moving vehicle? I try setDir and setVectorDir commands and it stops the vehicle or overwrites the vehicle velocity to [0,0,0]; these 2 examples turn the boat at the required rate and angle but speed is cancelled to 0. boat01 addAction ["<t color='#FFFF00'>Rudder Port 10</t>","rudderLeft.sqf", 10, 0.4, false, true]; _boat = _this select 0; _caller = _this select 1; _amount = _this select 3; _counter = 0; _amount = _amount *10; while {_counter < _amount} do { _counter = _counter + 1; _boatDir = getDir _boat; _boat setDir (_boatDir - 0.1); sleep 0.01; }; this also: boat01 addAction ["<t color='#FFFF00'>Rudder Port 10</t>","rudderLeft.sqf", 10, 0.4, false, true]; _boat = _this select 0; _caller = _this select 1; _amount = _this select 3; _counter = 0; _amount = _amount *10; _vel = velocity _boat; _v1 = 0; _v2 = 0; while {_counter < _amount} do { _dir = round(getDir _boat); If ((_dir >= 0) && (_dir <= 90)) then {_v1 = -0.015; _v2 = 0.0015;}; If (_dir >= 90 && _dir <= 180) then {_v1 = 0.0015; _v2 = 0.0015;}; If (_dir >= 180 && _dir <= 270) then {_v1 = 0.0015; _v2 = -0.0015;}; If (_dir >= 270 && _dir <= 360) then {_v1 = -0.0015; _v2 = -0.0015;}; _counter = _counter + 1; _vecDir = vectorDir boat01; _boat setVectorDir [(_vecDir select 0) + _v1,(_vecDir select 1) + _v2,_vecDir select 2]; _boat setVelocity _vel;//I put this here to keep velocity but no effect sleep 0.001; };
  6. I put this in the waypoint of a helicopter to make it chase the player with it's spotlight on. Works best if you are in a fleeing vehicle. Maybe you can adapt it? null = [] spawn {while {true} do { (driver heli1) action ["lightOn", heli1]; sleep 0.01;};}; null = [] spawn {while {true} do {_index = currentWaypoint group heli1; [group heli1, _index] setWaypointPosition [position player, 0]; sleep 1};};
  7. container named c1 Trigger Activation: anyone once Cond: ((c1 animationPhase 'Door_1_rot') >= 0.5 || (c1 animationPhase 'Door_2_rot') >= 0.5) onAct: hint "c1 door open"; onDeac: hint "c1 door closed"; Condition is in the config viewer under user actions (there is no ID for editor placed objects)
  8. TAG_fnc_teleport = { (vehicle player) setPos _pos; hintSilent format ["Moved to grid %1", mapGridPosition player]; ["Teleport_ID", "onMapSingleClick"] call BIS_fnc_removeStackedEventHandler; }; ["Teleport_ID", "onMapSingleClick", "TAG_fnc_teleport"] call BIS_fnc_addStackedEventHandler; Does anyone notice that if you set this up to work for 1 teleport only it breaks the shift + LMB player waypoint function? Try the above code, teleport, then open map again, press shift + Left Mouse Button and you do not get a waypoint.
  9. Falsche9

    Laser Des for dummies

    Remove the other magazines from the F18-E: (You can see this in the config viewer) this removeMagazineGlobal "js_m_fa18_m61"; {this removeMagazineGlobal "js_m_fa18_aim9x_x1";} forEach [1,2]; {this removeMagazineGlobal "js_m_fa18_aim120c_x1";} forEach [1,2,3,4]; {this removeMagazineGlobal "js_m_fa18_Maverick_x1";} forEach [1,2]; Place a JTAC unit near your opfor target. The AI JTAC will laser the target for you. Or laser the target yourself - the AI pilot will bomb the target with the above code.
  10. Does this thing happen when the server is locked an no one else joined? ;)
  11. Falsche9

    Change position in vehicle

    It does sound like it?! Press F2 to select you 1st AI teamate Press 4 to display nearby vehicles Select the vehicle from the list Menu will appear with something like 1.Anywhere 2.Driver 4.Gunner 5.Ride in back If there is only 1 vehicle on the map the keys to press in sequence will be F2-4-2-2 to move your 1st AI team mate into the driver position of the vehicle.
  12. Falsche9

    Change position in vehicle

    As fight9 said it's all still there in the commanding menu and has not changed since Arma2? Select AI with F1 - F11 Vehicle options are 4 key Select vehicle and seating options menu appears get in: Driver,Gunner,Commander,Ride in Back Select driver with function keys then move to - open map and click middle mouse button.
  13. http://community.bistudio.com/wiki/setVehicleVarName http://community.bistudio.com/wiki/moveInCargo unitName moveInCargo [vehicle, CargoIndex] http://community.bistudio.com/wiki/assignAsCargoIndex http://community.bistudio.com/wiki/orderGetIn _unit1 assignAsCargoIndex [_vcl, 1]; [_unit1] orderGetIn true;
  14. If you want enemy aircraft to destroy a building use a laserTarget: _nBuild = [0,0,0] nearestObject 26967;//replace with building ID _box = boundingBox _nBuild; _height = _box select 1 select 2; _lt = "LaserTargetE" createVehicle [0,0,0]; _lt attachTo [_nBuild,[0,0,_height]];
  15. results from config viewer: configfile >> "CfgAmmo" >> "DemoCharge_Remote_Ammo" = ["PipeBombBase","PipeBombCore","TimeBombCore","Default"] configfile >> "CfgAmmo" >> "SatchelCharge_Remote_Ammo" = ["PipeBombBase","PipeBombCore","TimeBombCore","Default"]
×