Post: help with a gsc function
01-25-2017, 09:03 AM #1
yan88
NextGenUpdate Elite
(adsbygoogle = window.adsbygoogle || []).push({}); hi guys ive been messing with gsc on black ops 3 pc, but i cant seem to get the donuke function working i thought id just be able to edit were the power ups are but i cant geem to get it, if anyone can help me that would be great.
this is what i changed the code to to try get it working

function donuke()
{
foreach(player in level.players)
{
level thread scripts\zm\scripts\zm\_zm_powerups&nuke_powerup(self,player.team);
player scripts\zm\scripts\zm\_zm_powerups&powerup_vo("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");

it was a bo2 function i just tried changin it to work on bo3 and any help would be great
03-25-2017, 06:49 PM #2
AhcPower
Save Point
it's not science next time research into it
also keep in mind its name space so when threading with namespace it goes

namespace id example <zm_powerup_nuke> then the function with this in the middle :: not &, also the function after >>> example <nuke_powerup>
have fun


    
#using scripts\zm\_zm_powerups_nuke;

function donuke()
{
foreach(player in level.players)
{
level thread zm_powerup_nuke::nuke_powerup(self.item,self.team);
player zm_powerup_nuke::powerup_vo("nuke");
zombies = GetAiTeamArray( level.zombie_team );
player.zombie_nuked = ArraySort( zombies, self.origin );
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}

/*

give credits to: jaycoder
credits are due
if this doesn't work let me know

*/

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo