Profile image

Need Help with Part Damage (Mod Scripting)

9,846 Adiarka454  7.4 years ago

I'm working on a weapon mod, and I'd say it's over 50% complete (3D models done, physics working, attachment points, etc).

The only issue is, it's a weapon that does bugger all damage. I'm not using the normal SimplePlanes bullets or gun script, but rather a custom-made one. I need to know what variables to use in order to cause damage to the parts hit by this weapon.

I've tried using tags to no avail, as most objects in SP turned out to be untagged. Using object names was no better, as directly destroying objects confused the Part Modifier scripts and cause them to spam NullReference errors.

Any help is greatly appreciated, and I thank you in advance.