1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial Specifically GSC Coding: 3D Hud Elements Tutorial

Discussion in 'Tutorial Section' started by CabCon, Feb 2, 2016.

  1. CabCon

    CabCon Head Administrator Staff Member

    2,803
    1,668
    113
    Credits:
    40,826
    Hello CCM,
    this is a tutorial of something that is old, but I the most people still don't know,so I decided to post it here. Is a tutorial about hud elements in 3D. It has the same effect as the death icons. This Function is by Yamato.

    Function Code
    Code:
    MakeWorldText(x,y,z,alpha,shader,width,height)
    {
        text = newHudElem();
        text.x = x;
        text.y = y;
        text.z = z;
        text.alpha = alpha;
        text.archived = true;
        text setShader(shader,width,height);
        text setwaypoint(true,false);
        return text;
    }
    Here is a example
    Code:
    self.element = self MakeWorldText(0,0,0,1,"lui_loader_32_no_offset",100,100);
    You can do this with any other hud Element too. :smile:


    Thank you and have a nice day,
    @CabCon.
     
    iRnZ and God like this.
  2. Liam

    Liam XBOX Developer. Need Help regarding XBOX? PM Me.

    177
    178
    43
    Credits:
    105
    used it before, nice :grinning:
     
    CabCon likes this.
  3. BaDSooD

    BaDSooD Old CCM Member

    617
    358
    63
    Credits:
    63
    Thank's for the post :smile:
     
    CabCon likes this.
  4. VerTical

    VerTical Head Member Donator

    713
    1,008
    93
    Credits:
    2,077
    Good Tut :sunglasses:
     
    CabCon likes this.
  5. CabCon

    CabCon Head Administrator Staff Member

    2,803
    1,668
    113
    Credits:
    40,826
    Thank you :grinning:
     

Share This Page