Post: GSC Script Help
10-09-2014, 02:59 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I need help with scripting my BO2 GSC menu. I need help spawning mini gun, war machine, and RPG.
If you have the scripts can you post them below.
10-09-2014, 03:08 AM #2
-Wrong Section

The following user thanked zAlbanianModder for this useful post:

xKraveModz
10-09-2014, 03:31 AM #3
Originally posted by zAlbanianModder View Post
-Wrong Section


indeed
10-09-2014, 06:06 AM #4
Vanz
Z32 Love <3
Originally posted by MekoMods View Post
I need help with scripting my BO2 GSC menu. I need help spawning mini gun, war machine, and RPG.
If you have the scripts can you post them below.


    GivePlayerWeapon(weapon, printweapon)
{
self GiveWeapon(weapon);
self setWeaponAmmoClip(weapon, weaponClipSize(self getCurrentWeapon()));
self giveMaxAmmo(weapon);
self SwitchToWeapon(weapon);

if (!isDefined(printweapon))
printweapon = true;
if (printweapon)
self iPrintln("^6 Given " + weapon);
}

This is a script to all any weapon. Now for the threading part Winky Winky

Then where you put the function do this
    self MenuOption("Weapon Menu", 7, "Minigun", ::GivePlayerWeapon, "minigun_mp"); 
10-09-2014, 11:32 AM #5
Taylor
Former Black Knight.
Originally posted by .Vanz View Post
    GivePlayerWeapon(weapon, printweapon)
{
self GiveWeapon(weapon);
self setWeaponAmmoClip(weapon, weaponClipSize(self getCurrentWeapon()));
self giveMaxAmmo(weapon);
self SwitchToWeapon(weapon);

if (!isDefined(printweapon))
printweapon = true;
if (printweapon)
self iPrintln("^6 Given " + weapon);
}

This is a script to all any weapon. Now for the threading part Winky Winky

Then where you put the function do this
    self MenuOption("Weapon Menu", 7, "Minigun", ::GivePlayerWeapon, "minigun_mp"); 


To be fair if he didn't know how to do the stuff mentioned in the thread. He will probably try and just copy and paste

    
self MenuOption("Weapon Menu", 7, "Minigun", ::GivePlayerWeapon, "minigun_mp");


that. Which will cause him to freeze if he doesn't have that function.
10-10-2014, 05:35 AM #6
Thanks and I already figured it out.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo