Scripts / [SOLVED] Weapon types and slots

Author
Message
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 28th Sep 2019 16:08
Hi i was wondering about if theres is a way 2 make the weapon slots reserved 4 a specified weapon type.
The idea behind that is, i wanna that the player can use only 1 weapon from each weapon type, so he cant have 2 pistols or 3 rifles in hes inventory.So far i know we have pistols, rifles, rocket launcher, meele and grenades.Its possible to realize it?
TY

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th Sep 2019 20:49
Yes, you would have to write a Lua script though.

You might have more luck asking on the script forum and specifying exactly how you would want it to work and with which weapons exactly (remember that not everyone has the same weapons so if you want any non-stock ones you would need to specifiy what they are).
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th Sep 2019 23:50
This post has been marked by the post author as the answer.
Something like this?



Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 30th Sep 2019 23:54 Edited at: 1st Oct 2019 00:04
YEEEES
Thank u
Iam gonna try to combine it with smallgs drop weapon script so the weapons dont dissapear
https://forum.game-guru.com/thread/221138
the only problem with it is that they seems no way to keep adding ammo everytime u take the weapon again
PM
Wolf
Forum Support
16
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Oct 2019 12:18
Amazing stuff Amen!

Login to post a reply

Server time is: 2024-04-27 02:33:31
Your offset time is: 2024-04-27 02:33:31