
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
new_spawn_logic()
{
classtospawn = npcClassInit( classtospawn, weapon );
spawnguy = weaponClassThink( class );
switch( spawnguy )
{
case "attacker":
spawner = getEntarray( "attacker_spawner", "targetname" );
break;
case "defender":
spawner = getEntarray( "defender_spawner", "targetname" );
break;
case "kamikaze":
spawner = getEntarray( "kamikaze_spawner", "targetname" );
break;
case "sharpshooter":
spawner = getEntarray( "sharpshooter_spawner", "targetname" );
break;
}
spawner dospawn();
spawner thread spawnEvent( classToSpawn, guyWeapon );
spawner thread flyingBodies();
}
}
}

![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |

![]() | |
![]() | |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
there is an extra curly bracket in the code. remove one of them and see if it works.

Console:
(Image removed from quote.)
I have since removed the extra bracket, not that it fixs anything
i think you should let us see the entire file to find what's wrong. we can't magically guess what causes it since we're not psychic wizards.

Because I kind of wanted to keep this semi-secret and not paste the entire thing for all to see.
Also, you wouldn't make much sense of it because I haven't changed everything, so there might still be missing variables and such.
I'd rather write up my own spawning script. Payload's spawning scripts are causing mindfucks.
Shouldn't it be 'getEntArray'? Don't know much about scripting, but I'm taking a stab at it.