NOTHING2 0 Posted July 9, 2019 Share Posted July 9, 2019 (edited) If the ped is unarmed , ped will pickup the weapon The point is How to make the ped do this action again,and again, everytime ped is unarmed The Code followed is just perform ONE time action if (companion.Weapons.Current.Hash.Equals(WeaponHash.Unarmed)) { companion.Weapons.Give(WeaponHash.Musket, 9, true, true); //(I want ped DO this action EVERYTIME he is unarmed,it's can be shooted by police or fall form high,etc...) } Edited July 9, 2019 by NOTHING2 Link to post Share on other sites
NOTHING2 0 Posted July 10, 2019 Author Share Posted July 10, 2019 is it posible or because it's nothing hard Link to post Share on other sites
ikt 284 Posted July 12, 2019 Share Posted July 12, 2019 You'll want to check the ped every few (milli)seconds to see if it still is armed. Assuming you use ScriptHookVDotNet, you can make a method like bool CheckPedStillArmed(Ped ped) and run that in your OnTick method. Link to post Share on other sites
NOTHING2 0 Posted July 12, 2019 Author Share Posted July 12, 2019 i'm trying..waiting for my response Which class is that...can not see it GTA namespaces ? Link to post Share on other sites