Give officer new weapon?
Posted: Sat Jul 16, 2016 3:07 am
How do I give the clone officer an upgraded rep rifle? While keeping the stock one? Pretty much adding a new weapon
Well the officer already has four weapons, so you'd add the following code:SkinnyODST wrote:How do I give the clone officer an upgraded rep rifle? While keeping the stock one? Pretty much adding a new weapon
Code: Select all
SetClassProperty("rep_inf_ep3_officer", "WeaponName5", "rep_weap_award_rifle")
SetClassProperty("rep_inf_ep3_officer", "WeaponAmmo5", "4")Thanks! But as I`m still new here I don`t know how to get to the faq`s...It`s probably really simple, but thanks againAnthonyBF2 wrote:Well the officer already has four weapons, so you'd add the following code:SkinnyODST wrote:How do I give the clone officer an upgraded rep rifle? While keeping the stock one? Pretty much adding a new weapon
4 is the number of clips, not bullets and I may be incorrect on the weapon name, you can see it's name in rep/odf if I misspelled it.Code: Select all
SetClassProperty("rep_inf_ep3_officer", "WeaponName5", "rep_weap_award_rifle") SetClassProperty("rep_inf_ep3_officer", "WeaponAmmo5", "4")
P.S. I strongly recommend you read the site's modding FAQ - repeatedly. You'll acquire a lot from it.
Unless the unit actually has 8 weapons, this probably won't work... Though I can't really confirm. I would set it up just as Anthony suggested and make sure you can get it working first, then make changes from there.I changed around the officers loadout so the AWARD rifle is weapon 8. I changed the number to 8 after it didn`t work and it STILL doesn`t work