hi guys ive been messing around making a gsc menu for zombies can any1 help me get this working please
function donuke()
{
foreach(player in level.players)
{
level thread scripts\zm\scripts\zm\_zm_powerup_nuke(self,player.team);
player scripts\zm\_zm_powerup_nuke("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}
it was this back on bo2 i just thought pointing it to were the powerups are now it would work but it dosnt
donuke()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::nuke_powerup(self,player.team);
player maps\mp\zombies\_zm_powerups:owerup_vo("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}
here is the error i get aswell
^1 level thread scripts\zm\scripts\zm\_zm_powerup_nuke
^1----------------------------------------------------^
^1ERR(0) scripts/zm/gametypes/_clientids.gsc (725,53) in "dopnuke()" : syntax error, unexpected TOKEN_FILENAME, expecting TOKEN_LEFT_BRACKET or TOKEN_IDENTIFIER : level thread scripts\zm\scripts\zm\_zm_powerup_nuke
any help would be great
function donuke()
{
foreach(player in level.players)
{
level thread scripts\zm\scripts\zm\_zm_powerup_nuke(self,player.team);
player scripts\zm\_zm_powerup_nuke("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}
it was this back on bo2 i just thought pointing it to were the powerups are now it would work but it dosnt
donuke()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::nuke_powerup(self,player.team);
player maps\mp\zombies\_zm_powerups:owerup_vo("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}
here is the error i get aswell
^1 level thread scripts\zm\scripts\zm\_zm_powerup_nuke
^1----------------------------------------------------^
^1ERR(0) scripts/zm/gametypes/_clientids.gsc (725,53) in "dopnuke()" : syntax error, unexpected TOKEN_FILENAME, expecting TOKEN_LEFT_BRACKET or TOKEN_IDENTIFIER : level thread scripts\zm\scripts\zm\_zm_powerup_nuke
any help would be great
Last edited: