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

AI Ally's to follow the player?

broken avatar :(
Created 7 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
1,332 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
is there anyway to get marine or any ally in general to follow the player at all???  ???
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie

Code Snippet
Plaintext
ally_guy setgoalpos( player.origin );
Marked as best answer by Deleted User 3 years ago
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Code Snippet
Plaintext
ally_guy setgoalpos( player.origin );



thats it? so i just past it at the bottom with my AI trigger? i dont know where to put this tbh. i want Ally's from a trigger spawn i made to follow the player. so that script will work?

Double Post Merge: May 22, 2017, 10:28:03 pm



thats it? so i just past it at the bottom with my AI trigger? i dont know where to put this tbh. i want Ally's from a trigger spawn i made to follow the player. so that script will work?

Code Snippet
Plaintext
ai_behaviour()
{
ai = getAIArray("allies");
player = GetPlayers();
for(;;)
{
for (i = 0; i < ai.size ; i++)
{
if(Distance(ai[i].origin, player[0].origin) > 4)
{
ai[i] setGoalPos(player[0].origin);
}
}
wait(5);
}
}


thats code i was using for AI to follow players but they dont go to the player frequently and they seem to get distracted by Enemy's but when there are no Enemy's they still dont try and move to the player sometimes!

 
Loading ...