Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Might be a silly question... regarding SetPlayerData
#1
With setplayerdata how do I tell the game to put no attachments on the weapon?

self setPlayerData( "customClasses", 0, "weaponSetups", 1, "attachment", "???" );

thanks..
Reply

#2
i think its based on the weapon name example you add ak47_mp well for ak47 with grenade launcher you type ak47_gl_mp
Reply

#3
(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" );
Reply

#4
http://www.itsmods.com/forum/Thread-Tuto...asses.html
Reply

#5
(08-10-2013, 14:16)Yamato Wrote: http://www.itsmods.com/forum/Thread-Tuto...asses.html

thanks so much thats perfect
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,939 10-13-2013, 16:54
Last Post: hmann
Rainbow please help me = question's clacki 1 2,369 09-24-2013, 15:22
Last Post: OzonE
  A question about the Call of Duty Black Ops king_dom 1 3,686 07-08-2013, 05:26
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,907 07-06-2013, 19:22
Last Post: surtek
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,499 06-04-2013, 01:54
Last Post: rotceh_dnih
  bot question meisking 1 2,041 04-13-2013, 11:02
Last Post: SuperNovaAO
  Help [QUESTION][IDEA] Invisible Wall 99IRock 8 5,459 03-03-2013, 14:37
Last Post: Nekochan
Wink Help question [HARD] Tony. 12 7,932 03-02-2013, 22:54
Last Post: JariZ
  A Question supernuke 2 2,270 02-22-2013, 15:45
Last Post: supernuke
Rainbow The question of SpawnModel xtreme2010 9 5,591 01-06-2013, 18:37
Last Post: xtreme2010

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.