Make AI Love You!

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
User avatar
Mo|)_M4n





Posts: 133
Joined: Fri Aug 10, 2007 3:30 pm

Make AI Love You!

Post by Mo|)_M4n »

How can I make it so that AI are on your team? I tried making then 1\ Player instead of 2\ Human or 3\ Convenent, (Team in Encounters) but they stand there, not doing anything...
User avatar
MasterNeoChief




Conceptionist

Posts: 2431
Joined: Tue Dec 23, 2003 9:34 am
Location: The Netherlands

Post by MasterNeoChief »

Set up AI in sapien, make the team human, and add a script that says (ai_allegiance player human).
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

Team Human? Only for SP right?

In MP:
Team Index 0 - Red Team
Team Index 1 - Blue Team

and if you hack the rest...it's fun online :P
...left for good
User avatar
Mo|)_M4n





Posts: 133
Joined: Fri Aug 10, 2007 3:30 pm

Post by Mo|)_M4n »

I'm doing MP, so use Patrick's?
If so, more information!
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

Code: Select all

(script startup aiteam
(player_allegiance "player, human")
)
That makes the player and human be on your side.

If you want to fight on a side that you can switch (by going to red team or blue team.

Use the 0 default by team index for red, and 1 for blue.
User avatar
Mo|)_M4n





Posts: 133
Joined: Fri Aug 10, 2007 3:30 pm

Post by Mo|)_M4n »

Thanks!
It works!
Post Reply