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

Putting all weapons into a array.

broken avatar :(
Created 8 years ago
by Rangfarl
0 Members and 1 Guest are viewing this topic.
2,738 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 February 2014
Last active: 7 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Rangfarl's Groups
Rangfarl's Contact & Social Links
Hi, first time posting. I am working on a mod and I need all the weapons put into a array. I had a nice short way that I was using on other cods, but it does not work in black ops 3. I currently have it set up like this, but its I like simple, and trying to find a shorter way. I have about half of the guns in the array, the way i'm doing now.  Any help is much appreciated.
Spoiler: click to open...
Code Snippet
Plaintext
		level.RandWeapon = [];
level.RandWeapon[0] = "pistol_burst";
level.RandWeapon[1] = "pistol_fullauto";
level.RandWeapon[2] = "smg_versatile";
level.RandWeapon[3] = "smg_fastfire";
level.RandWeapon[4] = "ar_standard";
Marked as best answer by treminaor 8 years ago
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Weapons are their own structs now you must use:

weap = GetWeapon(string);

and store weap.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 February 2014
Last active: 7 years ago
Posts
2
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
Rangfarl's Groups
Rangfarl's Contact & Social Links
Weapons are their own structs now you must use:

weap = GetWeapon(string);

and store weap.
ok thank you, wasn't sure if I could use, level.zombie_weapons , Like i did in black ops 1.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
There is a global array for weapon.

 
Loading ...