Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function objectives( text, complete, achievement)
- {
- hud = NewHudElem();
- hud.foreground = true;
- hud.fontScale = 2;
- hud.sort = 1;
- hud.hidewheninmenu = false;
- if(complete == true && !isDefined(achievement))
- {
- hud.color = (0,0.8,0);
- thread play_2D_sound("objective_complete");
- }
- else if(complete == false && !isDefined(achievement))
- {
- hud.color = (1,1,1);
- thread play_2D_sound("new_objective");
- }
- else if(achievement == true)
- {
- hud.color = (0.9,0.6,0);
- thread play_2D_sound("achievement");
- }
- hud.alignX = "left";
- hud.alignY = "top";
- hud.horzAlign = "left";
- hud.vertAlign = "top";
- hud.alpha = 1;
- hud SetText( text );
- wait( 5 );
- hud fadeOverTime( 2 );
- hud.alpha = 0;
- wait( 2 );
- hud Destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement