How to get sub weapon slot?
There is an explosive slot in there but in insurgency, the explosive slot can hold 2 different explosive type.
The GetPlayerWeaponSlot only able to grab the first explosive, unable to get the second one. I use a for loop to print out all the slots, still no luck. In-Game: http://i.imgur.com/5Nj1YY5.png Console: http://i.imgur.com/W88wdpE.png You see in the screenshot? It missing a grenade. I'm wondering is there a sub slot function for it... |
Re: How to get sub weapon slot?
You need to loop the grenade slot.
PHP Code:
Quote:
|
Re: How to get sub weapon slot?
That's to remove a weapon from the player's slot, and this is for insurgency, I don't think CS has the same structure.
|
Re: How to get sub weapon slot?
Quote:
|
Re: How to get sub weapon slot?
The one u showing me is just remove the weapon by looping the same slot
And I don't get how that grenade offset work What i'm trying to do is grab the entity of the missing grenade from the slot so I can modify it instead of removing them |
Re: How to get sub weapon slot?
99% of us have nothing to do with insurgency but I think that they do the same as in csgo with grenades so that's why I quoted it.
|
Re: How to get sub weapon slot?
Quote:
Ur script work but I don't wanna remove the weapon I wanna grab the weapon ID off from the slot |
All times are GMT -4. The time now is 16:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.