A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »AI come and attack problem

Author Topic: AI come and attack problem (7 messages, Page 1 of 1)
Moderators: Dennis

Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Dec 29, 2010 03:46 PM    Msg. 1 of 7       
So in my map I have AI that spawn on the other side of the map. I want most of them (not all of them) to come over to my side or in the middle map or something and fight rather than all of them just staying in their spawn area and shooting across the map.

I'm thinking of using the commands:

(ai_magically_see_player) but I don't want all of them to only attack the player.

(ai_playfight) what does this do?

(ai_migrate_encounter) the encounter they migrate to would be my ai buddies.

hmm i think i fixed it now, i just made fewer firing positions and put fewer at the spawn area.
Edited by Xoronatus on Dec 29, 2010 at 04:05 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 29, 2010 04:06 PM    Msg. 2 of 7       
You can also use the (ai_magically_see_encounter "FIRST AI ENCOUNTER" "SECOND AI ENCOUNTER") command to make the AI magically see both the player and the enemy AI encounter.


Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Dec 29, 2010 05:08 PM    Msg. 3 of 7       
So if my covenant encounter is called wave1
and my spartan buddies encounter is called spartans
then:
(ai_magically_see_encounter wave1 spartans)

would be the command to make wave1 do stuff and move.
Edited by Xoronatus on Dec 29, 2010 at 05:09 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 29, 2010 05:17 PM    Msg. 4 of 7       
It would make them attempt to engage the spartan encounter. If their desired combat range is short range, then yes, they will move to engage.


Xoronatus
Joined: Dec 6, 2010

Taking a break


Posted: Dec 29, 2010 07:53 PM    Msg. 5 of 7       
I also found that there is a "weight" option in the move position in sapien. if I were to set that to a high number then would that make ai prefer that move position more?


Head Noob
Joined: Oct 3, 2010

This difficulty is for noobs! Mythic is for pros


Posted: Dec 29, 2010 10:46 PM    Msg. 6 of 7       
Or use (ai_try_to_fight encounter1 encounter2)
They will see if they can attack the other encounter.

P.S. (ai_playfight) mean that 2 encounters shot each other etc. But do no damage. Good for cutscenes.
Edited by Head Noob on Dec 29, 2010 at 10:47 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Dec 29, 2010 11:48 PM    Msg. 7 of 7       
Don't use move positions in conjunction with firing positions. The AI will abandon move positions in lieu of firing positions.

AI_try_to_fight sets a preference; it does not force the AI to fight another encounter. Rather, it causes the AI to prefer to target the enemy encounter over the player or other targets.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 9:08 PM 109 ms.
A Halo Maps Website