Modme Forums

Change the Starting Weapon

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Abnormal202

Hey just wanted to put this quick tutorial here because I couldn't find it on Modme and it took me a while to find it on UGX. It's really basic, but credits go to Josh1600 A.K.A IceGrenade for this line of code.

Inside your mapname.gsc in your main function before

zm_usermap::main();



paste:

level.start_weapon = getWeapon("weapon_name");



Obviously replace weapon_name with the name of a weapon in your map. For a list of all default weapons in a map, check Here.


ModmeBot:

Reply By: DTZxPorter

It's been in our wiki http://phabricator.aviacreations.com/w/black_ops_3/basics/change_start_weapon/


ModmeBot:

Reply By: Abnormal202

DTZxPorter

It's been in our wiki http://phabricator.aviacreations.com/w/black_ops_3/basics/change_start_weapon/

Sorry I didn't know that. This code is a little smaller though.