quakergamer 0 Posted October 18, 2003 Hello! Please look at this first : <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _WeaponMode = _this select 3 ? _WeaponMode = Single : exit Basically _this select 3 when executing a fired event handler script will return the weapon firing mode (Single, Burst or FullAuto). If i write something like this after that _soldier = _this select 0 _soldier groupchat _WeaponMode it will write the firing mode in the Chat Bar BUT if I want the script to exit if you fire the gun at the "single" firing MODE well it ignores it and still does the rest of the script even if its supposed to exit !! Any ideas about that ? Later! Share this post Link to post Share on other sites
BraTTy 0 Posted October 18, 2003 This maybe ? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _WeaponMode = _this select 3 ? _WeaponMode = "Single" : exit edit: oops what Suma said Share this post Link to post Share on other sites
suma 8 Posted October 18, 2003 Do not use ? _WeaponMode = Single : exit, use ? _WeaponMode == "Single" : exit instead. Share this post Link to post Share on other sites
quakergamer 0 Posted October 19, 2003 Thank you BraTTy and Suma! Finally the weapon jam script works correctly AND is realistic ! Thank you all for your help! later! Share this post Link to post Share on other sites