Jump to content
Sign in to follow this  
carleone

equipement menu

Recommended Posts

Hi. How i can exec script when player open or close equipement menu?

Share this post


Link to post
Share on other sites


While {alive player} do
{
     WaitUntil {!IsNull (FindDisplay 106)};
     foo = [bar] execvm "moo_open.sqf";

     WaitUntil {IsNull (FindDisplay 106)};
     foo = [bar] execvm "moo_closed.sqf";
};


Share this post


Link to post
Share on other sites

Thanks. It's work. But I have another question. How I can update information about weapons and magazines in this menu?

Code:

@(!IsNull (FindDisplay 106))

clearWeaponCargo Rearm_RU

clearMagazineCargo Rearm_RU

hint "1"

@(IsNull (FindDisplay 106))

hint "2"

After "Clear" information in menu not update. Maybe I can press any button from script for this?

Edited by carleone

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×