CJLivs 0 Posted August 28, 2007 Can anyone help? I'm trying to script a soldier to go into the "ManActReloadMagazine" cycle after firing a shot from a certain weapon. Hopefully giving me a poor-man's bolt action look. Anybody any ideas or know where I can find an easy to implement bolt action script as I'm not a great scripter. Note: This will only be for my own use and not be re-distributed. Thanks Share this post Link to post Share on other sites
AtStWalker 0 Posted August 29, 2007 Hello Add a civilian ingame. On the initialization: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> this addmagazine "HuntingRifleMag";this addmagazine "HuntingRifleMag";this addweapon "HuntingRifle";this addEventHandler ["FIRED",{_this exec "boltaction.sqs"}] On ur mission folder add that script called boltaction.sqs <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ; boltaction.sqs ; this addEventHandler ["FIRED",{_this exec "boltaction.sqs"}] ; http://community.bistudio.com/wiki/Operation_Flashpoint:_Moves_List ; OR make ur own ! :-) ; http://ofp.gamepark.cz/_hosted/animcenter/ _myrifleman =_this select 0 ~0.05 ?(_weapon == "HuntingRifle"):goto "boltaction" #boltaction _myrifleman switchMove "CombatReloadMagazine" exit At Share this post Link to post Share on other sites
RN Malboeuf 12 Posted August 29, 2007 aha, and enjoy bugs when crouched or prone In ofp it's only possible for a mod (like leberation one), not addon Share this post Link to post Share on other sites
AtStWalker 0 Posted August 29, 2007 Quote[/b] ]Hopefully giving me a poor-man's bolt action look. btw.. # CrouchReloadMagazine # LyingReloadMagazine Share this post Link to post Share on other sites
CJLivs 0 Posted August 29, 2007 Nice one guys, I see what you mean about the buggy appearance, the soldier suddenly jumping up if reloading whilst prone or crouched. With the problems detecting whether the soldier is prone, crouched etc I can't see a way around this. Â Thanks all the same! Share this post Link to post Share on other sites
AtStWalker 0 Posted August 29, 2007 freeze contact ww2ec Fab that's a news about his bolt action script http://ww2ec.3dactionplanet.gamespy.com/comment.php?124 Share this post Link to post Share on other sites