Nadin Posted September 28, 2010 Share Posted September 28, 2010 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 More sharing options...
Quetzlsacatanango Posted September 28, 2010 Share Posted September 28, 2010 (edited) 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 September 28, 2010 by Quetzlsacatanango Link to comment Share on other sites More sharing options...
Nadin Posted September 28, 2010 Author Share Posted September 28, 2010 Thanks. How'd I know it'd be you who answered this? Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted September 28, 2010 Share Posted September 28, 2010 Because I hate my job the most and would rather be doing anything else but it right now? Link to comment Share on other sites More sharing options...
Nadin Posted September 28, 2010 Author Share Posted September 28, 2010 That actually explains a lot. Link to comment Share on other sites More sharing options...
Nadin Posted September 28, 2010 Author Share Posted September 28, 2010 Didn't work, but I should be able to figure it out. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts