UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Delete Spawned In Dogs?

broken avatar :(
Created 11 years ago
by jbird
0 Members and 1 Guest are viewing this topic.
3,387 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 5 days ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
×
jbird's Groups
I know how to delete spawned in zombies, but it doesn't delete the dogs, how do I remove them?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 3 months ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator 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.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
I know how to delete spawned in zombies, but it doesn't delete the dogs, how do I remove them?
http://ugx-mods.com/forum/index.php?topic=3072
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 5 days ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
jbird's Groups
I'm not trying to remove dog rounds, I have a certain trigger that kills all zombies on the map but it doesnt remove the dogs.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 3 months ago
Posts
1,190
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator 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.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
I'm not trying to remove dog rounds, I have a certain trigger that kills all zombies on the map but it doesnt remove the dogs.

Whoops. I misunderstood.  Don't know how to do that sorry.
Marked as best answer by jbird 11 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
how are you getting your array of enemies?
are you using this?
Code Snippet
Plaintext
            zombies = getaispeciesarray("axis");
if you are using that form try changing it to this
Code Snippet
Plaintext
          enemies = GetAiSpeciesArray( "axis", "all" );
thats the same for that they use is _zombiemode_utility file to collect how many enemies there are in the map so i would think it would include dogs
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Can you post your code? I would just have set a trigger and waited for trigger, if it wasn't a player, kill/delete it...? Is that what you did or did you get an array and look for istouching or something?
Last Edit: June 12, 2015, 03:07:46 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 5 days ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
jbird's Groups
This is what I have.
Code Snippet
Plaintext
zombs = getaiarray("axis");
for(i=0;i<zombs.size;i++)
{
     zombs[i] delete(); //removes all currently spawned in zombies
}
Last Edit: June 12, 2015, 08:16:11 pm by jbird
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I'm not trying to remove dog rounds, I have a certain trigger that kills all zombies on the map but it doesnt remove the dogs.

This is what I have.
Code Snippet
Plaintext
zombs = getaiarray("axis");
for(i=0;i<zombs.size;i++)
{
     zombs[i] delete(); //removes all currently spawned in zombies
}

How does the trigger come in here?


I was assuming you were doing something like:

Code Snippet
Plaintext
KillZombies(){
//thread KillZombies();//thread this up in function threads
trigs = getentarray("killtrigs","targetname");
for(i=0;i<trigs.size;i++){
trigs[i] thread DontTouchMe();
}
}
DontTouchMe(){
while(1){
self waittill("trigger",thing);
if(!isPlayer(thing)) thing DoDamage( thing.health + 666, thing.origin );
}
}
Last Edit: June 12, 2015, 08:29:39 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 5 days ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
jbird's Groups
I got it working by changing it from
Code Snippet
Plaintext
zombs = getaiarray("axis");
to
Code Snippet
Plaintext
zombs = getaispeciesarray("axis");
Thanks guys
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
I got it working by changing it from
Code Snippet
Plaintext
zombs = getaiarray("axis");
to
Code Snippet
Plaintext
zombs = getaispeciesarray("axis");
Thanks guys

ill be honest i didnt even know that getAiArray was a method ive always used getAiSpeciesArray, but im glad you got it working :)
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
how are you getting your array of enemies?
are you using this?
Code Snippet
Plaintext
            zombies = getaispeciesarray("axis");
if you are using that form try changing it to this
Code Snippet
Plaintext
          enemies = GetAiSpeciesArray( "axis", "all" );
thats the same for that they use is _zombiemode_utility file to collect how many enemies there are in the map so i would think it would include dogs

Was trying to find out how to do this yesterday... love these forums! +1 from me ;)
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 13 May 2014
Last active: 5 days ago
Posts
167
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
jbird's Groups
ill be honest i didnt even know that getAiArray was a method ive always used getAiSpeciesArray, but im glad you got it working :)
And I didn't know GetAiSpeciesArray was a method :p
Last Edit: June 13, 2015, 01:07:53 am by jbird

 
Loading ...