Guest User

Untitled

a guest
Nov 17th, 2013
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. private["_ent"];
  2. _ent = _this select 3;
  3. player removeAction s_player_dance;
  4. s_player_dance = -1;
  5.  
  6. _sounddist = 25;
  7.  
  8.  
  9. player playMove "ActsPercMstpSnonWnonDnon_DancingStefan";
  10. _nul = [objNull, player, rSAY, "skrill", _sounddist] call RE;
  11. cutText ["Let the party begin!","PLAIN DOWN"];
  12.  
  13. r_interrupt = false;
  14. _animState = animationState player;
  15. r_doLoop = true;
  16. _started = false;
  17. _finished = false;
  18.  
  19. while {r_doLoop} do {
  20. _animState = animationState player;
  21. _isDancing = ["ActsPercMstpSnonWnonDnon_DancingStefan",_animState] call fnc_inString;
  22. if (_isDancing) then {
  23. _started = true;
  24. };
  25. if (_started and !_isDancing) then {
  26. r_doLoop = false;
  27. _finished = true;
  28. };
  29. if (r_interrupt) then {
  30. r_doLoop = false;
  31. };
  32. sleep 0.1;
  33. };
  34. r_doLoop = false;
  35.  
  36. if (_finished) then {
  37.  
  38. cutText ["Awesome performance mate!","PLAIN DOWN"];
  39. sleep 25;
  40. } else {
  41. r_interrupt = false;
  42. [objNull, player, rSwitchMove,""] call RE;
  43. player playActionNow "stop";
  44. cutText ["Dance Cancelled! ;(","PLAIN DOWN"];
  45. };
Advertisement
Add Comment
Please, Sign In to add comment