eleglas Posted April 20, 2009 Share Posted April 20, 2009 I've made myself 3 guns a normal 44 magnum, a silent version and a scoped version, but what I'm trying to do is make an item that will let me chose the different guns and equip them at the same time, I have this script so far, it doesn't seem to do anything when I try it though: SCN DurhamPistolScript Short Button Begin ScriptEffectStart ShowMessage DurhamPistolMessage Set Button to GetButtonPressed If Button == 0 Player.additem WeapDurhamPistolNorm 1 1;this is normal 44 Player.equipitem WeapDurhamPistolNorm Player.removeitem WeapDurhamPistolSilent 1 1;this is silent 44 Player.removeitem WeapDurhamPistolSnipe 1 1;this is scoped 44 ElseIf Button == 1 Player.Additem WeapDurhamPistolSilent 1 1 Player.EquipItem WeapDurhamPistolSilent Player.removeitem WeapDurhamPistolNorm 1 1 Player.removeitem WeapDurhamPistolSnipe 1 1 ElseIf Button == 2 Player.Additem WeapDurhamPistolSnipe 1 1 Player.EquipItem WeapDurhamPistolSnipe Player.removeitem WeapDurhamPistolSilent 1 1 Player.removeitem WeapDurhamPistolNorm 1 1 EndIf END BEGIN ScriptEffectFinish Player.Additem 00DurhamPistol 1 1;this is the pistol settings item END Thanks for the help guys. Link to comment Share on other sites More sharing options...
TGBlank Posted April 20, 2009 Share Posted April 20, 2009 Move the ifbutton and all to a scripteffectupdate block. Better yet, look in the wiki for menu examples. Link to comment Share on other sites More sharing options...
eleglas Posted April 20, 2009 Author Share Posted April 20, 2009 No that didn't work. Link to comment Share on other sites More sharing options...
TGBlank Posted April 20, 2009 Share Posted April 20, 2009 eh, wait... on a pistol?... hmm, you probably want that effect elsewhere, effects on guns are onhit effects. Link to comment Share on other sites More sharing options...
eleglas Posted April 21, 2009 Author Share Posted April 21, 2009 The Effect doesn't go onto the gun, it goes onto an ingestible when you use it, it shows the menu and gives you the options mentioned above. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.