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

zombie go to a point

broken avatar :(
Created 8 years ago
by shippuden1592
0 Members and 1 Guest are viewing this topic.
1,522 views
broken avatar :(
×
broken avatar :(
Location: mxGuanajuato
Date Registered: 5 May 2013
Last active: 13 hours ago
Posts
225
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
If you do not take risks, you can not create a fut
×
shippuden1592's Groups
He tried to make the zombies are directed to the point of Gersch but the zombies just follow me to my...

I do not want to use a "create_zombie_point_of_interest" because I do not want the boss also go.

This is the code I use:

Code Snippet
Plaintext
zombie_black_hole( black_hole, ent_trigger, player )
{
self endon( "death" );

if( !IsDefined( self ) || !IsAlive( self ) )
return;

if( ( IsDefined( self.in_the_ground ) && self.in_the_ground ) || ( IsDefined( self.is_traversing ) && self.is_traversing ) )
return;

if( IsDefined( self.is_gersh ) && self.is_gersh )
{
self thread black_hole_damage( ent_trigger, player );
return;
}

self.is_gersh = true;

if( self.has_legs )
{
switch( self.zombie_move_speed )
{
case "walk":
case "run":                               
var = randomintrange(1, 3);
self set_run_anim( "run" + var );                     
self.run_combatanim = level._zombie_black_hole[ self.animname ][ "run" + var ];
break;
case "sprint":                             
var = randomintrange(1, 3);
self set_run_anim( "sprint" + var );                     
self.run_combatanim = level._zombie_black_hole[ self.animname ][ "sprint" + var ];
break;
}
}
else
{
var = randomintrange(1, 3);         
self set_run_anim( "sprint" + var );
self.run_combatanim = level._crawl_black_hole[ "zombie" ][ "sprint" + var ];
self.crouchRunAnim = level._crawl_black_hole[ "zombie" ][ "sprint" + var];
self.crouchrun_combatanim = level._crawl_black_hole[ "zombie" ][ "sprint" + var ];
}

self SetGoalPos( black_hole.origin );
}

Is there any way to do this???

In advance thanks for the help ;)
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community 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.
Community 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 Links[email protected]HarryBo21HarryBo000
You need to kill or pause "find_flesh()"

It runs recursively

 
Loading ...