Zebes77 Posted July 12, 2012 Share Posted July 12, 2012 I am working on a mod and have reached the point of needing scripts to accomplish some of the things I set out to do - sadly I am not very good at them, so I am hoping to find someone here who is. There are 2 scripts that I need. The first is to allow certain armor pieces to play a specific sound when I equip them. With weapons you can give each a unique equip sound but that doesn't seem to be the case with armors, so I'd like to do this with a script. For instance if I equip NightVisionGoggle, I'd like them to play GoggleSound. The other script I need, the one I suspect will be a pain in the butt, is one that can switch between a first person version of a weapon and a third person. My mod uses a modular forearm cannon that, in 3rd person, uses an invisible weapon mesh with the cannon itself an Armor Addon equipped through a form list. While this looks good in 3rd person, it looks pretty off in first person mode so I made the armor mesh into an actual weapon for first person. While the GECK weapons have a setting for normal weapon art and first person as well, I have problems. The biggest one being, when I set my cannon's first person mesh to the actual weapon-cannon, it displays it on top of the third person 'invisible weapon + armor addon' version when in 3rd person. So it looks like there are 2 weapons attached to my character's arm. When I holster the cannon this way as well, the 'first person' mesh is sheathed on my character's hip, which looks pretty darn silly. Is there a way to script my weapon to change between 2 different versions based on whether or not I am in first or 3rd person? For instance: In 3rd person I want to display ModArmCannon3P (weapon ID). This is the 3rd person, invisible mesh/armor addon version. When I switch to first person however, the cannon would switch to ModArmCannon1P (weapon ID) - the first person mesh that is actually a firing weapon with collision and such. Pretty much 'if in 3rd person, equip ModArmCannon3P - if in 1st person, equip ModArmCannon1P' - this is what I am looking for. I don't know enough about scripting to know if that's possible, scripting based on perspective I mean. Thank you for reading and for any replies. :) Link to comment Share on other sites More sharing options...
Recommended Posts