Advertisement
icdb

[ArmA3] Fancy slingloading (Wonky in multiplayer)

May 29th, 2020
1,495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.59 KB | None | 0 0
  1. [(vehicle player), (_this select 1)] spawn fn_slingLoad;
  2.  
  3. fn_slingLoad = {
  4.   params["_heli","_tank"];
  5.  
  6.   _mass = getMass _tank;
  7.   rope = ropeCreate [_heli, [0,0,-2],_tank, [2,2,0], 10];
  8.   rope2 = ropeCreate [_heli, [0,0,-2],_tank, [2,-2,0], 10];
  9.   rope3 = ropeCreate [_heli, [0,0,-2],_tank, [-2,2,0], 10];
  10.   rope4 = ropeCreate [_heli, [0,0,-2],_tank, [-2,-2,0], 10];
  11.   _tank setMass 500;
  12.   waitUntil{!isTouchingGround _tank};
  13.   sleep 5;
  14.   waitUntil{isTouchingGround _tank};
  15.   {
  16.     ropeCut [_x, 5];
  17.     ropeDestroy _x;
  18.   } forEach [rope,rope2,rope3,rope4];
  19.  
  20.   _tank setMass _mass;
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement