View Full Version : My Elites dont follow my command lists.
CodeBrain
May 18th, 2009, 05:23 PM
BECAUSE TEHY R 2 1337 4 MEH GUIZ :saddowns:
But in all seriousness, the elites don't want to follow my commands I give them.
I gave the list to their spawn points, as well as referencing the command list in the script.
My command list is simple, it's just this:
Get in ghosts
Go to point 0 and face 1
(couple more later)
Go to point 13 and face 14
Go to point 14 keep_moving
I close Sapien, and reopen it with the saved scenario. I load the elites and...
They just get in the ghosts and then sit there. They do absolutely nothing once they are in the ghost.
ai_command_list_status tells me 1, which means that the command list has finished.
How is it finished, when it only has gotten in the vehicle, and not moved? The command list isn't finished, look:
Get in ghosts
Go to point 0 and face 1
(couple more later)
Go to point 13 and face 14
Go to point 14 keep_moving
That's the only thing they did, nothing else. How is that called finished?
Help please?
P.S: I did not post this in my previous topic, "when making a custom animation...", because I felt it was done.
p0lar_bear
May 18th, 2009, 08:33 PM
You might be throwing too much at them at once, IIRC the engine executes the whole thing at once.
What you should be doing is putting in wait commands, and then advancing the list with a script. For debugging purposes, drop a wait in there after each command.
Inferno
May 18th, 2009, 08:37 PM
AI's in vehicles don't follow command lists.
p0lar_bear
May 18th, 2009, 08:49 PM
AI's in vehicles don't follow command lists.Wrong. The end cutscene with the Chief getting into the banshee and flying away in BioHalo is a command list.
By default, AI can't drive vehicles if the driver seat isn't a gunner seat as well (e.g. ghost). If you tried it with a warthog, it doesn't work.
CodeBrain
May 18th, 2009, 09:13 PM
@p0lar: I just tried putting in wait commands. I picked "wait until told to advance" mainly because a tutorial on AI (Was it Aztec's? I can't remember) I had watched a long time ago said to use that.
ai_command_list_status now gives me 2, which means that it is "waiting for stimulus". The wait commands are making the command list freeze.
Here is a pic on my command list:
http://i19.photobucket.com/albums/b152/ShadowFireMario/points.png
http://i19.photobucket.com/albums/b152/ShadowFireMario/commands.png
Can you guys see my errors?
Choking Victim
May 18th, 2009, 09:14 PM
It's not freezing, its doing exactly what it should do. Waiting until it's told to advance. You're not telling it to advance, so it continues to wait.
Inferno
May 18th, 2009, 09:30 PM
Wrong. The end cutscene with the Chief getting into the banshee and flying away in BioHalo is a command list.
By default, AI can't drive vehicles if the driver seat isn't a gunner seat as well (e.g. ghost). If you tried it with a warthog, it doesn't work.
Well then mostly AI's in vehicles don't folow command lists. I know you have to script it onto the biped in the vehicle. Just telling a AI to get in a vehicle and drive has never worked for me.
CodeBrain
May 18th, 2009, 09:57 PM
It's not freezing, its doing exactly what it should do. Waiting until it's told to advance. You're not telling it to advance, so it continues to wait.
I should of said it in that post, I did try ai_command_list_advance and it still didn't move.
Strange, I never had to use that command, or ai_command_list_advance_by_unit at all to get someone to follow a command list. Before this they usually just went and did it.
CodeBrain
May 19th, 2009, 04:02 PM
Bump.
Sorry D:
Inferno
May 19th, 2009, 04:24 PM
Lodex knows how to do this. Ask him.
L0d3x
May 19th, 2009, 07:56 PM
Can you tell me EXACTLY what it is you want to accomplish?
Also show me exactly what you have given in Sapien, and how your scripts look like. Sorry if I sound lazy here, but I'm too tired to try and decipher what exactly is and isn't working.
I'll look at this topic tomorrow then.
=> bed
CodeBrain
May 19th, 2009, 08:25 PM
Specificly, I want these elites to get inside ghosts, and proceed to head to the human base.
Before I go and say this, I just tested something in Sapien. I know that the elites arent doing anything, so I tried it on my Marine encounter, which was for the human base.
IT WORKED.
I'm being serious, it worked perfectly with the marines, but not the elites.
This is weird.
Ki11a_FTW
May 19th, 2009, 10:04 PM
If you tried it with a warthog, it doesn't work.
Uh, it works for me.. and its just set to driver
117
May 20th, 2009, 01:57 AM
I don't know if you want them to go through some exact areas or something, but maybe you should just cut down on the points they move to? I know the AI for Ghosts can self-navigate fine, as long as you haven't used any large scenery pieces that would get in their way to the point of interest. When I make AI maps, I usually just stick one point in for the AI to go to the enemy base and they get there by themselves fine. Try simply sticking the point at the human base and remove the rest of it, maybe they'll be able to figure out how to get there without driving off any cliffs, lol.
L0d3x
May 20th, 2009, 05:03 AM
Specificly, I want these elites to get inside ghosts, and proceed to head to the human base.
Before I go and say this, I just tested something in Sapien. I know that the elites arent doing anything, so I tried it on my Marine encounter, which was for the human base.
IT WORKED.
I'm being serious, it worked perfectly with the marines, but not the elites.
This is weird.
Strange, if your elites get inside the ghost, they should follow the command list. Ehm, that is, if their initiative isn't enabled for some reason.
I'm just taking a potshot here, but do your marines have firing positions? Do your elites have firing positions? Cause once AI start using their firing positions for whatever reason, they can't follow command lists decently (this is my experience with it).
CodeBrain
May 20th, 2009, 04:28 PM
Both AI use firing positions.
Strange, I never had this problem before D:
L0d3x
May 20th, 2009, 04:49 PM
I added you on MSN, let's figure out what's wrong.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.