UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

quesstion about get players weapons

broken avatar :(
Created 12 years ago
by gamer9294
0 Members and 1 Guest are viewing this topic.
2,283 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
Signature
My Custom Zombie Maps:

- Nazi zombie Legion
- City of Hell
- The Abandoned Mine
- The Last Undead House (Finished)

more custom zombie maps coming soon
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
hello everyone,

I have question I'm working on a script but my question is:

How can I check what for weapons the player have.

but I mean really for like what weapon 1 is and weapon 2 is and weapon 3 (if have mule kick)

I now that there is

GetCurrentWeapon();
GetWeaponsListPrimaries();

but I will know that if it is possible ?

to do this:

for each player :)


currentweap1 = the first weapon.
currentweap2 = the second weapon.
currentweap3 = the third weapon when player has mule kick.


is there a sort of script that what I have show here above ?



sorry for my bad english

if anyone can help me with this, that will be really appreciated :)  8)


best regards,
Gamer9294


Double Post Merge: November 28, 2014, 11:38:03 am
I don't if maybe this is possible ?

I found it somewhere in the script maybe that I can use ?

weaponInventory


for( m = 0; m < self.weaponInventory.size; m++ )



then will this work as if I do this:

weaponInventory[0] =  then the current weapon 1 - the first weapon
weaponInventory[1] =  the second weapon that player has.
weaponInventory[2] =  is the third weapon that the player can have when has mule kick.



best regards,
Gamer9294
Last Edit: November 28, 2014, 11:38:03 am by gamer9294
Marked as best answer by gamer9294 12 years ago
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
something like this should do:
( you need to get the player(s) with a trigger or get_players() or something, so you can define 'player' )


Code Snippet
Plaintext
weaponInventory = player GetWeaponsListPrimaries();

for( m = 0; m < self.weaponInventory.size; m++ )
{
   if( weaponInventory[m] == "tesla_gun" )
   {
            REST OF YOUR SCRIPT
   }
}

and yes it would return the weapons as
weaponInventory[0]
weaponInventory[1]
etc


btw: HOLLAND!  :troll:
Last Edit: November 28, 2014, 12:58:14 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
something like this should do:
( you need to get the player(s) with a trigger or get_players() or something, so you can define 'player' )


Code Snippet
Plaintext
weaponInventory = player GetWeaponsListPrimaries();

for( m = 0; m < self.weaponInventory.size; m++ )
{
   if( weaponInventory[m] == "tesla_gun" )
   {
            REST OF YOUR SCRIPT
   }
}

and yes it would return the weapons as
weaponInventory[0]
weaponInventory[1]
etc


btw: HOLLAND!  :troll:


Thanks for helping me.


okay thank you then I can do that :D


Quote
btw: HOLLAND!  :troll:

Yes I come from holland,  I can speak Dutch :D   8)


best regards,
Gamer9294
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
Yes I come from holland,  I can speak Dutch :D   8)

Yup me too. Not enough people from Holland here, good to have a 'brother'  :D

Lemme know if you need some more help!
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
Yup me too. Not enough people from Holland here, good to have a 'brother'  :D

Lemme know if you need some more help!
Are you kidding? There's loads of you Dutch on here... ;D
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 22 September 2013
Last active: 6 months ago
Posts
326
Respect
Forum Rank
Perk Hacker
Primary Group
Mapper
My Groups
More
Personal Quote
Zombie Mapper and Gamer
×
gamer9294's Groups
Mapper Has released one or more maps to the UGX-Mods community.
gamer9294's Contact & Social Links
alright I don't no guys,  now I know that there is few people that I know from zombies here but that is it xD

haha


Quote
Lemme know if you need some more help!

yes sure, no problem I will pm you if I need help :D



best regards,
Gamer9294
Last Edit: November 28, 2014, 08:28:21 pm by gamer9294

 
Loading ...