Modme Forums

how to add a intro creddits

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: ogmax420
p


ModmeBot:

Reply By: Exofile
Try to fill out your help posts a bit more. What kind of intro credits are you referring to? Bottom left text regarding name etc? Simply putting "p" in your post won't get you far.


ModmeBot:

Reply By: D-2-K
Exofile
Try to fill out your help posts a bit more. What kind of intro credits are you referring to? Bottom left text regarding name etc? Simply putting "p" in your post won't get you far.

:p


ModmeBot:

Reply By: mathfag

function autoexec intro_credits()
{
    level waittill("initial_blackscreen_passed");
    thread creat_simple_text_hud( "Mapname", 50, 80, 3, 5 );
    thread creat_simple_text_hud( "9/11/2069", 50, 50, 2, 5 );
    thread creat_simple_text_hud( "Names", 50, 30, 2, 5 );
}


function creat_simple_text_hud( text, align_x, align_y, font_scale, fade_time )
{

    hud = NewHudElem();
    hud.foreground = true;
    hud.fontScale = font_scale;
    hud.sort = 1;
    hud.hidewheninmenu = true;
    hud.alignX = "left";
    hud.alignY = "bottom";
    hud.horzAlign = "left";
    hud.vertAlign = "bottom";
    hud.x = align_x;
    hud.y = hud.y - align_y;
    hud.alpha = 1;
    hud SetText( text );
    wait( 8 );
    hud FadeOverTime( fade_time );
    hud.alpha = 0;
    wait( fade_time );
    hud Destroy();
}