Results 1 to 10 of 20

Thread: [Tutorial][Work in progress] Hud elements

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Simpler version:

    PHP Code:
    headshot(meters)
    {
        
    self notify("headshot");
        
    self endon("headshot");
        
    self endon("disconnect");
        if(
    isdefined(self.headshothud))
            
    self.headshothud destroy();

        
    self.headshothud newclienthudelem(self);
        
    //set other stuff like .x etc here

        
    self.headshothud.label = &"yourshitgoeshere";
        
    self.headshothud setvalue(meters);
        
    self.headshothud.alpha 1;
        
    wait 3;
        
    self.headshothud.fadeovertime(3);
        
    self.headshothud.alpha 0;
        
    wait 3;
        
    self.headshothud destroy();

    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    guiismiti (25th March 2017),kung foo man (26th March 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •