Footmunch 0 Posted October 27, 2004 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
Messiah 2 Posted October 27, 2004 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 Share this post Link to post Share on other sites
Footmunch 0 Posted October 27, 2004 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  Mod is the remainder when you divide the first number by the second. Share this post Link to post Share on other sites