Jump to content

remove Item and add new item on pick up


LordMaddog

Recommended Posts

well I want to make a weapon that makes ammo for another weapon and I know how to but I don't know how to make the script

 

basically the first weapon shoots a projectile that you can pick up

 

now when you pick up the projectile it is removed and replaced with the ammo by script I thought the script would be easy but well after a few tries here I am any help?

 

 

I also noticed that no mater what when you have a list selected instead of ammo it will always shoot that list objects not the default projectile you have selected in the editor can this be changed some how Pleas tell me yes or my mod is going to suffer a big immersion factor down grade

Link to comment
Share on other sites

This is already done with a projectile in-game - the baseball projectile. If you look at how that is set up, you should be able to deduce how to replicate this effect. The script would be very simple in nature, something like this:

ref rContainer

Begin OnAdd
set rContainer to GetContainer
rContainer.AddItem <MyAmmo> 1 1
RemoveMe
End

Cipscis

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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