Help with pickable projectile

Post » Thu May 03, 2012 10:15 pm

I got a custom weapon that shoots pickable projectiles but when I try to pick it up, it's not signed as the projectile name but weapon name. For example - I got a rocket launcher that shoots tin cans. When I try to pick up the throwed tin can, it's signed as "Rocket Launcher" and not "Tin Can".

Firstly, I tried to make a weapon similar to Rock-It Launcher from Fallout 3 (the throwable items were not an ammunition but miscellaneous objects) but for some reason it doesn't work - when I point my cursor over the weapon in PipBoy, the game crashes.

Any help is kindly welcomed...
User avatar
Rudi Carter
 
Posts: 3365
Joined: Fri Sep 01, 2006 11:09 pm

Post » Fri May 04, 2012 12:35 am

Hey, I'm only getting started on scripting, but why don't you just duplicate the Coin Shot script (12GaugeCoinShotScript)?

I was planning on using it for thrown knives in a weapons set I'm creating and I guess it can be adapted to most other weapons to return a specific set of items with a chance to spawn some on each use - but I have never tried or tested it yet.

edit: Reread your post, and I noticed I'm probably not helping a lot.
You probably want a chance to return whichever Item you fired with the Rock-It Launcher and I have absolutely no idea if that is implemented as a Weapon that uses different types of ammo and projectiles or if it behaves in an entirely differnt way.
I guess if you have a form for each type of possible projectile you could attach an individual script to each that will spawn the item fired, but again, just guesswork. I'm sorry.

e2: Typos
User avatar
DAVId MArtInez
 
Posts: 3410
Joined: Fri Aug 10, 2007 1:16 am


Return to Fallout: New Vegas