Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Submarine Submerging
- IF (typeOf _vehicle == "ori_submarine" && surfaceIsWater POSITION player) THEN {
- IF (sub_UpDown < 0) THEN {
- submarinevehicle = _vehicle;
- systemChat format['fn_animationPhase:%1',(submarinevehicle animationPhase "sink")];
- IF (isNil "schwe_UpdownCheck") THEN { schwe_UpdownCheck = 0;};
- IF (schwe_UpdownCheck == 1) THEN {
- sub_UpDown = submarinevehicle addAction ["Rise","scripts\sub_UPDown.sqf",0,5,FALSE,TRUE];
- } ELSE {
- sub_UpDown = submarinevehicle addAction ["Submerge","scripts\sub_UPDown.sqf",1,5,FALSE,TRUE];
- };
- };
- } ELSE {
- IF (!isNil "submarinevehicle") THEN {
- submarinevehicle removeAction sub_UpDown;
- sub_UpDown = -1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement