Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Some function to get the name of the weapon in the code

[Support] Some function to get the name of the weapon in the code

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 238 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kalitosundefined Offline
    Kalitosundefined Offline
    Kalitos
    wrote on last edited by Mr. Android
    #1

    There is some other function that allows me to get the full name of a weapon in the code.
    I am using this function:

    weaponP = self getloadoutweapon (class_num1, "primary");
    

    Where class_num1 is the number of the player's class you have selected, with this I get the name of the player's primary weapon, but there is a problem when I get the secondary weapon

    weaponS = self getloadoutweapon (class_num1, "secondary");

    If the secondary weapon has a silencer, the function returns me:
    fnp45_mp + silencer

    But if the weapon has Dual Wield, The function just returns me
    fnp45_mp, as if the weapon didn't have it.

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Unread 0
    • Recent
    • Tags
    • Popular
    • Users
    • Groups