Page 1 of 1
AI Respawning Error
Posted: Sat Oct 06, 2007 9:01 am
by EGG
When I kill the AI (Gruntx1) and I set them to respawn it freezes. I nulled all the sounds and everything. Idk how you guys get them to respawn in the the other AI maps but can somone please help me!

Posted: Sat Oct 06, 2007 9:24 am
by grimdoomer
dont check respaen enabled in the AI squads box. you need a respawn script. look in the first page of tuts and its call like one squads hog respawn and more very helpfull. that will show you how.
Posted: Sat Oct 06, 2007 10:20 am
by EGG
ok, I got them to not mess up without the script but I need them to respawn, and run. I can't find the tut you are talking about either

Posted: Sat Oct 06, 2007 11:03 am
by L0d3x
For getting the AI to run: look up a tutorial on jmad editting.
For respawn scripts: look up shadowz o death's how to properly inject scripts tutorial (first page on the tutorials forum) and inject the following respawn script:
Code: Select all
(script continuous RespawnSomeRandomSquad
(begin
(sleep_until (<= (ai_living_count yoursquadname) 0) 450)
(ai_place yoursquadname)
)
)
This will result in your squad to respawn 450 halo time units after they die (about 30 seconds I think, perhaps I am mistaken).
Hope this helps! I also hope you surprise us all with a sweet AI mod!
Posted: Sat Oct 06, 2007 11:45 am
by EGG
do I put that code in for each squad?
Posted: Fri Oct 12, 2007 6:52 pm
by mr_penguin
yes, you need to put the code in for each squad. I saw a tut on here on how to add scripts with h2 core, I'll post a link when I find it.
EDIT: found it! Go to step 10 and use that code.
http://forums.halomods.com/viewtopic.php?t=70351