General > Developers Corner

Custom SWEP Help

(1/1)

Merlin:
I'm trying to make a custom SWEP using Robotboy655's lightsaber SWEP as a base but I can't seem to find out how to make the SWEP spawn with a preset model, color, give it no damage and make it not synch with the tool gun's settings. I've tried countless ways to do this but none worked, all I would get is random hilts and colors when giving the SWEP to myself.

Here's the code so far (This exact SWEP code is what produces a random hilt and color when giving myself the SWEP): https://pastebin.com/0jE249Ee

The holdtype is taken from King David's workshop addon called [wOS] Advanced Lightsaber Attack System, that aspect works fine for the SWEP.

Also changing the world model does not change the SWEP's model, don't know why.

Navigation

[0] Message Index

Go to full version