by ramon.dexter » Sat Mar 03, 2018 10:19 am
cortlong50 wrote:
i guess thats kinda what im asking...if i give them a "giveHUD" token or whatever...would it actually work?
Yep, that will work.
Take a look at this part of my SBARINFO:
Code: Select all
InInventory GrenadeExplosive, 1 || GrenadeFire, 1 //check if one of the two types of grenades in inventory; if so, draws whats in {}
{
Alpha 0.5
DrawImage "GRNBCK", -54, 0; //background of grenade display
DrawImage "GRNFRM", -54, 0; //frame of grenade display
InInventory GrenadeExplosive, 1 //actual grenade icon&amount display
{
DrawImage "IGRAP", -54, 0;
//number
Drawnumber 3, HUDFONT_STRIFE_YELLOW, yellow, "GrenadeExplosive", 367, 95;
}
InInventory GrenadeFire, 1
{
DrawImage "IGRIN", -54, 0;
//number
Drawnumber 3, HUDFONT_STRIFE_YELLOW, yellow, "GrenadeFire", 367, 114;
}
}
So, based on this example, you can do your HUD this way:
Code: Select all
InInventory giveHUD, 1
{
//your HUD goes here
}
[quote="cortlong50"]
i guess thats kinda what im asking...if i give them a "giveHUD" token or whatever...would it actually work? [/quote]
Yep, that will work.
Take a look at this part of my SBARINFO:
[code]
InInventory GrenadeExplosive, 1 || GrenadeFire, 1 //check if one of the two types of grenades in inventory; if so, draws whats in {}
{
Alpha 0.5
DrawImage "GRNBCK", -54, 0; //background of grenade display
DrawImage "GRNFRM", -54, 0; //frame of grenade display
InInventory GrenadeExplosive, 1 //actual grenade icon&amount display
{
DrawImage "IGRAP", -54, 0;
//number
Drawnumber 3, HUDFONT_STRIFE_YELLOW, yellow, "GrenadeExplosive", 367, 95;
}
InInventory GrenadeFire, 1
{
DrawImage "IGRIN", -54, 0;
//number
Drawnumber 3, HUDFONT_STRIFE_YELLOW, yellow, "GrenadeFire", 367, 114;
}
}
[/code]
So, based on this example, you can do your HUD this way:
[code]
InInventory giveHUD, 1
{
//your HUD goes here
}
[/code]