KiCHo666 Posted July 23, 2017 Share Posted July 23, 2017 Hello!I'm trying to change weapon's projectile by using "SetWeaponProjectile" and set weapon to use "AutomaticRifleBullet" projectile: SetWeaponProjectile AutomaticRifleBullet NVDLC01WeapAutomaticRifle but I get this error.What am I doing wrong?Thanks in advance! Link to comment Share on other sites More sharing options...
dubiousintent Posted July 23, 2017 Share Posted July 23, 2017 According to the Community GECK wiki, isn't that function supposed to have three parameters? -Dubious- Link to comment Share on other sites More sharing options...
Mktavish Posted July 23, 2017 Share Posted July 23, 2017 (edited) Needs to be ... MyRefWeapon.SetWeaponProjectile AutomaticRifleBullet NVDLC01WeapAutomaticRifle You are taking a weapon reference , which I think should call back to the base ... to set the projectile (naming it) of the weapon you call to (item) Unless the script is on the weapon you want to change its projectile ... then no need to get its ref for the script.But I think to get the ref you probably need to set a ref variable ? Edited July 23, 2017 by Mktavish Link to comment Share on other sites More sharing options...
KiCHo666 Posted July 23, 2017 Author Share Posted July 23, 2017 The way I solved it actually is to update to the latest NVSE avaliable (5.1 beta). After the update, the script was compiled correctly.Thanks for you help either way! Link to comment Share on other sites More sharing options...
Recommended Posts