HeroinZero Posted March 7, 2017 Share Posted March 7, 2017 If I try something like SetWeaponAmmo AmmoList50MG Weap10mmPistolor Weap10mmPistol.SetWeaponAmmo AmmoList50MGin theory it should make 10 mm pistol use AM rifle ammo but GECK just refuses to compile script with this line, am I doing something wrong? Link to comment Share on other sites More sharing options...
PushTheWinButton Posted March 7, 2017 Share Posted March 7, 2017 (edited) Nope, you're not doing anything wrong (in the first line anyway - the second one is wrong). The function was added by FOSE originally and doesn't work for NV. It's probably something to do with a weapon's ammo being a formlist in NV, as opposed to a single form in FO3. Edited March 7, 2017 by PushTheWinButton Link to comment Share on other sites More sharing options...
DoctaSax Posted March 7, 2017 Share Posted March 7, 2017 (edited) I'm unfamiliar with the function, but the second way you type it (ref syntax) would not work because you're trying to use it on a base form. SetWeaponAmmo AmmoList50MG, Weap10mmPistolcompiles fine for me.What kind of script are you trying to use it in? Edit: ninja'd. I have no idea if it works in-game, but compiling it seems to work. Edited March 7, 2017 by DoctaSax Link to comment Share on other sites More sharing options...
Ladez Posted March 7, 2017 Share Posted March 7, 2017 (edited) It works if you save the form list into a ref variable and pass that to the function. Edit: also works the normal way if you use compiler override. Edited March 7, 2017 by Ladez Link to comment Share on other sites More sharing options...
HeroinZero Posted March 8, 2017 Author Share Posted March 8, 2017 Thanks, override worked, didn't even knew it was a thing. Link to comment Share on other sites More sharing options...
Recommended Posts