SetDrainRate

ds2.10/lib/doc/lfun/lib/flashlight/SetDrainRate · 431 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

SETDRAINRATE

NAME
        SetDrainRate()



SYNOPSIS
        int SetDrainRate(int i)



DESCRIPTION
        Sets how much of a battery's charge is drained per heartbeat of use.



EXAMPLES
        For a two-minute battery with a charge of 120  on a mud with a one-second heartbeat: SetDrainRate(1)



LOCATION
        /lib/battery
/lib/flashlight


SEE ALSO
        GetDrainRate, SetCharge, GetCharge



Author
        Cratylus


Site Stats

Snippets: 1791
Codebases: 571