Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: xdferpc
I want is a wallbuy that when buying a weapon give you a random weapon
I tried it but it does not work out
ModmeBot:
Reply By: Abnormal202
I believe here:
you meant to use the GiveWeapon() function instead of the TakeWeapon() function, cause this would mean the script is looking for if the player has that random weapon and will try to take it from them, instead of give it to them.
so should be:
ModmeBot:
Reply By: xdferpc
thanks for the help
but it still does not give me the weapon . I don´t know
ModmeBot:
Reply By: Abnormal202
xdferpc
thanks for the help but it still does not give me the weapon . I don´t know
ModmeBot:
Reply By: Harry Bo21
you should be using
Lots of issues can occur if you dont handle them the other way, eg not taking your old weapon, not allowing for weapons that should / should not switch to automatically, mule kick not counting triggering the too many guns thing or monkeys not working, melees not being registered, grenades being added rather than replacing the current ones etc etc etc
ModmeBot:
Reply By: Abnormal202
yeah and probably also using this function:
instead of
ModmeBot:
Reply By: Harry Bo21
also should check if the player already has the weapon it chooses or one of its variants, in those cases - choose another
and check if the player is valid ( eg downed etc )
ModmeBot:
Reply By: xdferpc
I do not know where I have to put this
UNRECOVERABLE ERROR:
^1SCRIPT ERROR: No generated data for 'scripts/zm/zm_test1.gsc'
ERR(0) scripts/zm/zm_test1.gsc (275,57) in "wallbuy1()" : syntax error, unexpected TOKEN_EQUALS, expecting TOKEN_RIGHT_PAREN : player zm_weapons::weapon_give( a_weapon, is_upgrade =
ModmeBot:
Reply By: Harry Bo21
is a example of what arguments you can set... dont copy paste it...