Custom weapon.
#16

if you follow the code Southclaw wrote you, what it does is, it gives a normal ak ( same id ) , just with a different name, different damage. so you can have multiple AK's, same ids, just different params. what you basically do is just give a normal ak so you won't worry about object attached because you don't even attach it in the first place.

The way Southclaw did it in S&S project, is you can only hold one weapon at a time, you can have more weapons but they are in the inventory and one slot for holstering.
You can know when the player switches the weapon through OnPlayerUpdate and save 2 vars, new weapon, last weapon, if they are different delete last object, attach the new object.
Reply


Messages In This Thread
Custom weapon. - by Baltimore - 01.03.2015, 21:30
Re : Custom weapon. - by Baltimore - 01.03.2015, 22:18
Re: Custom weapon. - by maramizo - 01.03.2015, 22:58
Re : Custom weapon. - by Baltimore - 02.03.2015, 00:39
Re : Custom weapon. - by Baltimore - 02.03.2015, 10:24
Re : Custom weapon. - by Baltimore - 02.03.2015, 18:35
Re : Custom weapon. - by Golimad - 02.03.2015, 22:16
Re : Custom weapon. - by Baltimore - 02.03.2015, 22:17
Re : Custom weapon. - by Golimad - 02.03.2015, 22:21
Re : Custom weapon. - by Baltimore - 03.03.2015, 11:37
Re : Custom weapon. - by Baltimore - 03.03.2015, 19:55
Re : Custom weapon. - by Golimad - 03.03.2015, 20:22
Re : Custom weapon. - by Baltimore - 04.03.2015, 00:08
Re : Custom weapon. - by Golimad - 04.03.2015, 00:12
Re : Custom weapon. - by Baltimore - 04.03.2015, 01:32
Re : Custom weapon. - by Golimad - 04.03.2015, 21:47
Re : Custom weapon. - by Baltimore - 21.03.2015, 11:35
Re : Custom weapon. - by Baltimore - 22.03.2015, 09:06
Re: Re : Custom weapon. - by JaydenJason - 22.03.2015, 11:03
Re : Custom weapon. - by Baltimore - 22.03.2015, 19:56
Re : Custom weapon. - by Baltimore - 22.03.2015, 20:16
Re: Custom weapon. - by arjanforgames - 22.03.2015, 21:22
Re : Re: Custom weapon. - by Baltimore - 22.03.2015, 21:39
Re : Custom weapon. - by Baltimore - 28.03.2015, 09:31
Re : Custom weapon. - by Baltimore - 28.03.2015, 10:38
Re : Custom weapon. - by Baltimore - 28.03.2015, 14:34
Re : Custom weapon. - by Baltimore - 28.03.2015, 14:54
Re : Custom weapon. - by Baltimore - 28.03.2015, 20:28
Re : Custom weapon. - by Baltimore - 06.04.2015, 08:46
Re: Custom weapon. - by Baltimore - 02.05.2015, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)