Jump to content
Sign in to follow this  
Messiah

Check for reload

Recommended Posts

it is indeed listed as (200|5)

Then the ammo count should run to zero. Hmmm.

Quote[/b] ]

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?((_unit ammo "gun") mod 200 < 1) : goto "ReloadSection"

how does that work and where would it go? in place of this?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">?(_count == 0) : goto "ReloadLoop"

Yep, in the fired EH script. If the ammo count is returning

1200 (ie 200 + 5 mags), then:

(1000 mod 200) = 0 (ie <1 is true)

(999 mod 200) = 199 (ie <1 is false)

and so on.

Share this post


Link to post
Share on other sites

i'll try that now - but just a question on how 'mod' works tho...

does it relate numbers with numbers? I just like to be familiar with things when i add them... never seen this used before tounge_o.gif

Share this post


Link to post
Share on other sites
i'll try that now - but just a question on how 'mod' works tho...

does it relate numbers with numbers? I just like to be familiar with things when i add them... never seen this used before  tounge_o.gif

Mod is the remainder when you divide the first number by the second.

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  

×