Jump to content

A dual item script


Nadin

Recommended Posts

I'm sure it's been done...but how would you go about setting up a script where if a player or actor has one item they automatically have another...and if they drop one, they lose the other?

The primary use of this is a chainsaw bayoneted shotgun I'm making. Due to GECK limitations, it comes a two separate guns, but seeing as it's essentially the same gun, it would make no sense have the shotgun but not the bayonet. Therefore I got to tinkering around with the idea of this if there's one then the other idea, but I cannot figure out the script for it. Any pointers?

Link to comment
Share on other sites

something like

 

scn myscriptitem1

short doonce

begin onadd

player.additem item2 1

end

begin ondrop

player.removeitem item2 1

end

 

Then on item 2, you would want the same script on it that adds/drops item1.

 

If you have xcaliber munitions shop try looking at the script on the smoke monster. It has 556 mode and grenade launcher mode, if that's what you're going for with your gun.

Edited by Quetzlsacatanango
Link to comment
Share on other sites

  • Recently Browsing   0 members

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