ItsMods

Full Version: Might be a silly question... regarding SetPlayerData
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
With setplayerdata how do I tell the game to put no attachments on the weapon?

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

thanks..
i think its based on the weapon name example you add ak47_mp well for ak47 with grenade launcher you type ak47_gl_mp
(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" );
(08-10-2013, 14:16)Yamato Wrote: [ -> ]http://www.itsmods.com/forum/Thread-Tuto...asses.html

thanks so much thats perfect