Modme Forums
Menu:

trigger only damage a zombies

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: xdferpc
I'm making a trap that only hurt the zombies, not the player


ModmeBot:

Reply By: mathfag
trigger multiple

trap = GetEnt("trap","targetname");

while(1)
	{
	while(trap_active)
		{
		foreach(zom in zombie_utility::get_zombie_array())
			{
			if(zom IsTouching(trap))
				{
				zom DoDamage(zom.health+420, zom.origin);
				}
			}
		wait 0.05;
		}
	wait 0.05;
	}


ModmeBot:

Reply By: xdferpc
you are the fucking boss xD

thanks , work me


ModmeBot:

Reply By: Harry Bo21
That function will skip any zombies set to not count to the round and any vehicle ai types


ModmeBot:

Reply By: Symbo
note the +420 hehe


ModmeBot:

Reply By: mathfag

Harry Bo21
That function will skip any zombies set to not count to the round and any vehicle ai types

How about instead of just saying there's something wrong, you provide a solution.


ModmeBot:

Reply By: ihmiskeho

mathfag
Harry Bo21 That function will skip any zombies set to not count to the round and any vehicle ai types How about instead of just saying there's something wrong, you provide a solution.

GetAiTeamArray("axis") ? Not sure if it has the same limitation but that's what they used in the Ray Gun Mark 3 script