Author Topic: 2 Q's: Hide Inventory And Show Energy  (Read 789 times)

I have two questions. How can I make it so:

When a certain weapon fires, the weapon inventory is hidden (I need this so, that when noobs use my weapon [That makes another weapon mount on, and also change the player's "appearance"] they wont press q again.

Also, I would like to know how to make it so that the energy bar appears. (Perhaps as a command or something that is activated on fire.)

commandtoclient(%client,'showenergybar',%on);

%client is who you want it to show up for, %on is whether to show it or not. This can be overridden by the minigame player datablock being updated, though. The capitalisation of showenergybar may need to be different for it to work. (Try showEnergyBar if it doesn't)

Sorry, but where should I put this? Can I put it into a cmd?

When you enable/disable the weapon. Probably [Weapon Image Name]::onMount or [Weapon Image Name]::onFire, depending on how you use it.