Jump to content

Script error: Invalid magic item "..." for parameter inv item


KiCHo666

Recommended Posts

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

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 by Mktavish
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...