Advertisement
ElDubya

Untitled

Mar 25th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.71 KB | None | 0 0
  1. //Submarine Submerging
  2.     IF (typeOf _vehicle == "ori_submarine" && surfaceIsWater POSITION player) THEN {
  3.        
  4.        IF (sub_UpDown < 0) THEN {
  5.        submarinevehicle = _vehicle;
  6.        systemChat format['fn_animationPhase:%1',(submarinevehicle animationPhase "sink")];
  7.        IF (isNil "schwe_UpdownCheck") THEN { schwe_UpdownCheck = 0;};
  8.             IF (schwe_UpdownCheck == 1) THEN {
  9.                 sub_UpDown = submarinevehicle addAction ["Rise","scripts\sub_UPDown.sqf",0,5,FALSE,TRUE];
  10.             } ELSE {
  11.                 sub_UpDown = submarinevehicle addAction ["Submerge","scripts\sub_UPDown.sqf",1,5,FALSE,TRUE];
  12.             };
  13.        };
  14.     } ELSE {
  15.     IF (!isNil "submarinevehicle") THEN {
  16.        submarinevehicle removeAction sub_UpDown;
  17.        sub_UpDown = -1;
  18.       };
  19.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement