Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
With setplayerdata how do I tell the game to put no attachments on the weapon?
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "attachment", "???" );
thanks..
Posts: 11
Threads: 3
Joined: Jul 2013
Reputation:
0
i think its based on the weapon name example you add ak47_mp well for ak47 with grenade launcher you type ak47_gl_mp
Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
08-10-2013, 08:22
(This post was last modified: 08-10-2013, 08:24 by camxxcore.)
(08-10-2013, 04:56)Howl3r Wrote: i think its based on the weapon name example you add ak47_mp well for ak47 with grenade launcher you type ak47_gl_mp
what I'm trying to do is clear the attachments from the secondary weapon and then add custom weapons all using setplayerdata so it sticks in custom classes.. otherwise I get bugs like the previous attachments sticking and can't switch to the weapon if the attachment doesn't match up with the weapon..
(null representing the value I need to clear the attachment)
Quote: self setPlayerData( "customClasses", 0, "weaponSetups", 1, "attachment", "null?" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "attachment", "null?" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "attachment", "null" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 0, "weaponSetups", 1, "camo", "gold" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "weapon", "deserteaglegold" );
self setPlayerData( "customClasses", 1, "weaponSetups", 1, "camo", "gold" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "weapon", "m1014" );
self setPlayerData( "customClasses", 2, "weaponSetups", 1, "camo", "blue_tiger" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 3, "weaponSetups", 1, "camo", "orange_fall" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 4, "weaponSetups", 1, "camo", "red_tiger" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "weapon", "aa12" );
self setPlayerData( "customClasses", 5, "weaponSetups", 1, "camo", "blue_tiger" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 6, "weaponSetups", 1, "camo", "orange_fall" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 7, "weaponSetups", 1, "camo", "red_tiger" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "weapon", "spas12" );
self setPlayerData( "customClasses", 8, "weaponSetups", 1, "camo", "blue_tiger" );
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
(08-10-2013, 14:16)Yamato Wrote: http://www.itsmods.com/forum/Thread-Tuto...asses.html
thanks so much thats perfect
|