Welcome to Open Carnage

A resource for Halo 1 modding and tech, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time! EST. 2012

aLTis

Changing AI team

I need a way to change team of an AI with SAPP. read_word(object + 0xB8) works for objects but not for AI. HSC command (ai_set_team <ai> <team>) can only change to a few teams (player, human, covenant, flood, sentinel) but I need all 16.


08f9474ede.jpg

Share this post


Link to post
Share on other sites

Members of Open Carnage never see off-site ads.

Seems to work fine so far, I will need to test a bit more. Now I just change the encounter's team before spawning the AI so it wouldn't change the team of those that are already spawned. 


08f9474ede.jpg

Share this post


Link to post
Share on other sites
4 hours ago, aLTis said:

Seems to work fine so far, I will need to test a bit more. Now I just change the encounter's team before spawning the AI so it wouldn't change the team of those that are already spawned. 

 

I'm not sure what you are trying to accomplish, but my understanding is that the team an AI actor is assigned to is determined by the encounter it is in. Meaning that every actor within that encounter will be on the same team. If you wanted to assign an AI actor to each player, then from my understanding you would want to have 16 separate encounters.


dynamic.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.