VenomousHail Posted June 23, 2016 Share Posted June 23, 2016 (edited) Okay I have a new issue. I wanted to run the script on the weapon itself instead of the player. And now the message will not pop up on the screen when the weapon is equipped. Could anyone point me in the direction as to why the message will not show up?New Script: Scriptname SelectAmmo10mm extends ObjectReference Const message property V_10mmAmmo auto Const Weapon property V_10mmWeapon auto Const ObjectMod property mod_10mm_Chamber_Standard auto Const ObjectMod property mod_10mm_Chamber_Acid auto Const ObjectMod property mod_10mm_Chamber_Cryo auto Const ObjectMod property mod_10mm_Chamber_Electric auto Const ObjectMod property mod_10mm_Chamber_Explosive auto Const ObjectMod property mod_10mm_Chamber_Frenzy auto Const ObjectMod property mod_10mm_Chamber_Incendiary auto Const ObjectMod property mod_10mm_Chamber_Paralysis auto Const ObjectMod property mod_10mm_Chamber_Poison auto Const ObjectMod property mod_10mm_Chamber_Radiation auto Const Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() int ButtonPressed = V_10mmAmmo.show() if ButtonPressed == 0 AttachMod(mod_10mm_Chamber_Standard) elseif ButtonPressed == 1 AttachMod(mod_10mm_Chamber_Acid) elseif ButtonPressed == 2 AttachMod(mod_10mm_Chamber_Cryo) elseif ButtonPressed == 3 AttachMod(mod_10mm_Chamber_Electric) elseif ButtonPressed == 4 AttachMod(mod_10mm_Chamber_Explosive) elseif ButtonPressed == 5 AttachMod(mod_10mm_Chamber_Frenzy) elseif ButtonPressed == 6 AttachMod(mod_10mm_Chamber_Incendiary) elseif ButtonPressed == 7 AttachMod(mod_10mm_Chamber_Paralysis) elseif ButtonPressed == 8 AttachMod(mod_10mm_Chamber_Poison) elseif ButtonPressed == 9 AttachMod(mod_10mm_Chamber_Radiation) endif endif EndEvent Edited June 24, 2016 by VenomousHail Link to comment Share on other sites More sharing options...
Recommended Posts