nasuellia Posted April 24, 2010 Share Posted April 24, 2010 Hi all, i wanna write a script that runs once when the player reloads current weapon (without FOSE) but I really dunno how to do it. I don't know the sintax for the triggering! Is there a OnReload or something? Can someone help me? Thanks. Link to comment Share on other sites More sharing options...
Dyadya_Fedor Posted April 24, 2010 Share Posted April 24, 2010 For example short iReloading Begin GameMode if Player.GetAnimAction == 8 && iReloading == 0; reloading begin Set iReloading to 1 do something ;your code elseif Player.GetAnimAction != 8 && iReloading == 1 ; reloading end Set iReloading to 0 endif end Link to comment Share on other sites More sharing options...
nasuellia Posted April 24, 2010 Author Share Posted April 24, 2010 On 4/24/2010 at 7:04 PM, Dyadya_Fedor said: For example short iReloading Begin GameMode if Player.GetAnimAction == 8 && iReloading == 0; reloading begin Set iReloading to 1 do something ;your code elseif Player.GetAnimAction != 8 && iReloading == 1 ; reloading end Set iReloading to 0 endif end Thank you very much! That's exactly was i was searching for! Link to comment Share on other sites More sharing options...
Recommended Posts