Posts: 103
Threads: 27
Joined: Jun 2011
Reputation:
0
how do I give myself a random weapon at spawn from a list that I decide.
and how can I make my own texture for a custom entry in a .gdt
Dont wanna overwrite the existing L96A1 texture with my custom L94-Duck texture but I want the regular L96 to have the default texture and my custom L96 to have its own texture (Not camo)
Posts: 103
Threads: 27
Joined: Jun 2011
Reputation:
0
07-21-2011, 12:11
(This post was last modified: 07-21-2011, 12:43 by johamort.)
whats strTok
that gave me an error
Uninitialized variable weaps or something
Posts: 916
Threads: 65
Joined: Jun 2011
07-21-2011, 22:35
(This post was last modified: 07-21-2011, 22:38 by Scripts18.)
If I were you I'd use iAegle solution , less confusing when you have alot of codes
iAegle btw is this how you need to use it?
self giveweapon ( weapon )
v = [];
v[0] = "ak47_mp";
v[1] = "mp5k_mp";
v[2] = "ak74u_mp";
v[3] = "famas_mp";
v[4] = "fnfal_mp";
weapon = v[ randomInt( v.size ) ];
Posts: 103
Threads: 27
Joined: Jun 2011
Reputation:
0
how can I make my own texture for a custom entry in a .gdt
Dont wanna overwrite the existing L96A1 texture with my custom L94-Duck texture but I want the regular L96 to have the default texture and my custom L96 to have its own texture (Not camo)