Advertisement
Guest User

page2

a guest
Nov 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.85 KB | None | 0 0
  1. private["_object","_player","_id","_marker"];//tour2
  2. //On prend les arguments
  3. _myaction2 = _this select 0;
  4. _player = _this select 1;  // pour l'action
  5. _id =_this select 2;
  6. _marker = _this select 3;  //non de la tour
  7.  
  8. if((playableUnits) side unit == independant + 1);
  9. {
  10.     _player playMove "DismountOptic";   //On lance la petite séquence d'animation:
  11.     sleep 3.0;
  12.     waitUntil {animationState _player != "DismountOptic"};
  13.     _player playMove "DismountOptic";
  14.     sleep 3.0;
  15.     /*
  16.         waitUntil {animationState _player != "DismountOptic"};
  17.         _player playMove "DismountOptic";
  18.         sleep 3.0;
  19.         waitUntil {animationState _player != "DismountOptic"};
  20.         _player playMove "DismountOptic";
  21.         sleep 3.0;
  22.         waitUntil {animationState _player != "DismountOptic"};
  23.         _player playMove "DismountOptic";
  24.         sleep 3.0;
  25.         waitUntil {animationState _player != "DismountOptic"};
  26.         _player playMove "DismountOptic";
  27.         sleep 3.0;
  28.         waitUntil {animationState _player != "DismountOptic"};
  29.         _player playMove "DismountOptic";
  30.         sleep 3.0;
  31.         waitUntil {animationState _player != "DismountOptic"};
  32.         _player playMove "DismountOptic";
  33.         sleep 3.0;
  34.     */
  35.     waitUntil {animationState _player != "DismountOptic"};
  36.     _player playMove "DismountOptic";
  37.     sleep 3.0;
  38.     waitUntil {animationState _player != "DismountOptic"};
  39.    
  40.     _marker setMarkerColor "colorgreen";                            //modification du statu:
  41.  
  42.     hint format["la tour de comumication %1 et réparer",_marker];  //Petit message pour tous:
  43.  
  44.     //Ici placer scripts pour éteindre les communication:
  45.     _myaction2 removeAction _id;                                   //supresion de l'action
  46.     _myaction = transfo addAction ["<t color='#960018'>couper les communication</t>", "tour1.sqf", "1", 0, true, true, "", ""];
  47. }
  48. else
  49. {
  50.     hint format ["il y a pas de dépanneur donc tu peus réparer la tour %1 si tu a un toulkit",_marker];
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement