At the moment am working on my new map. Its not a jump map.
My problem is, I wanna make a part in the map, where you only can use knife, so I want to set ammo to 0 on primary and secondary weapon. The things I tried did not work. I hope someone can help me here.
Code: Select all
ammotouch()
{
noammo = getentarray( "noammo", "targetname" );
for( lp=0; lp < noammo.size; lp++ )
noammo[lp] thread knifeonly();
}
knifeonly()
{
while(1)
{
self waittill( "trigger", other );
other setweaponslotammo("primary", 0);
}
}
So.. what is wrong? Or how I can get it working?
Thanks
Oi!mel