Jump to content

Recharge Weapon


Braclo

Recommended Posts

Greeting! Need a magician's help with the following ^^.

 

I want to make my weapon auto recharge slowly after its below a certain amount of charge. Lets say a charge of 1000. As soon as its below that, it should recharge by 1 point every time the script is called in GameMode.

 

I got it to detect it with GetCurrentCharge [OBSE] but I cant seem to get it to recharge at all. SetCurrentCharge works, but only if you drop the weapon first >.> which is useless.

 

I have also tried SetEquippedCurrentCharge but im doing something wrong cause it aint doing anything when its called.

 

Anybody got any suggestions?

Link to comment
Share on other sites

ModEquippedCurrentCharge will work fine for this.

 

Example:

player.ModEquippedCurrentCharge 1 16
set mycharge to player.GetEquippedCurrentCharge 16
messageex "%.0f" mycharge

 

 

Thank you! I thought I tried that before but obviously I made a mistake somewhere, thankyou for the example. :D

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...