Advertisement
Abnormal202

Untitled

Mar 26th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function objectives( text, complete, achievement)
  2. {
  3. hud = NewHudElem();
  4. hud.foreground = true;
  5. hud.fontScale = 2;
  6. hud.sort = 1;
  7. hud.hidewheninmenu = false;
  8. if(complete == true && !isDefined(achievement))
  9. {
  10. hud.color = (0,0.8,0);
  11. thread play_2D_sound("objective_complete");
  12.  
  13. }
  14. else if(complete == false && !isDefined(achievement))
  15. {
  16. hud.color = (1,1,1);
  17. thread play_2D_sound("new_objective");
  18.  
  19. }
  20. else if(achievement == true)
  21. {
  22. hud.color = (0.9,0.6,0);
  23. thread play_2D_sound("achievement");
  24.  
  25. }
  26. hud.alignX = "left";
  27. hud.alignY = "top";
  28. hud.horzAlign = "left";
  29. hud.vertAlign = "top";
  30. hud.alpha = 1;
  31. hud SetText( text );
  32. wait( 5 );
  33. hud fadeOverTime( 2 );
  34. hud.alpha = 0;
  35. wait( 2 );
  36. hud Destroy();
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement