AI respawning?

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
t_mann05




Articulatist 250

Posts: 361
Joined: Fri Dec 02, 2005 7:46 pm

AI respawning?

Post by t_mann05 »

So i can make AI, but after i kill them, how do i get them to respawn? Is it a script?
a mammoth




Droplet

Posts: 1603
Joined: Fri Jul 15, 2005 7:01 pm

Post by a mammoth »

Yes you must script it.
My real name is a Mammoth, if someone who cares sees this, please change my name to a Mammoth
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

Yes it must be scripted, i dont know the exact script you would use becouse i havnt messed with AI yet(plan on it soon :D) but try looking at some of the sp scripts to see how they respawn the AI
t_mann05




Articulatist 250

Posts: 361
Joined: Fri Dec 02, 2005 7:46 pm

Post by t_mann05 »

alright thanks if you guys find out how to do it let me know!
Spammy




Revivalist Coagulator Articulatist 500

Posts: 643
Joined: Thu Apr 15, 2004 11:27 am
Location: They won't tell me...

Post by Spammy »

Well, in the AI thread somewhere around page 30, there is a script. I think it was

Code: Select all

(script startup respawner
(sleep_until (<= (ai_living_count 331) 0))
(ai_place 0000)
I tried it but couldn't get it spawn anything other than the second ai squad chunk...wierd.

Also, you could change startup to static(?) to make it respawn more than once.
Last edited by Spammy on Sun Sep 17, 2006 5:09 pm, edited 1 time in total.
User avatar
WastingBody





Posts: 195
Joined: Mon Sep 19, 2005 5:07 pm

Post by WastingBody »

Thats not right but it wouldnt work anyway because the ai_place wont spawn the ai from my experience.
Spammy




Revivalist Coagulator Articulatist 500

Posts: 643
Joined: Thu Apr 15, 2004 11:27 am
Location: They won't tell me...

Post by Spammy »

Code: Select all

(script startup respawner 
 (sleep_until (<= (ai_living_count 311) 0)) 
 (ai_place 0000) 
)
That's the script. It does work...sort of. It will spawn whatever squad is under the second chunk(labelled chunk 1) of the squads reflexive(if you've set it to spawn any number on easy/legendary and you have them placed inside the BSP of the MP map).

So, my problem is that I cannot get it to respawn the first(chunk 0) squad.
And it will only compile if you put the squad to respawn's name and the triggering squad's(ai_living_count 311) to a number; it won't compile if you give it an actual name...
leorimolo





Posts: 89
Joined: Thu Oct 20, 2005 1:52 pm

Post by leorimolo »

I made that script

Code: Select all

(script startup respawner
(sleep_until (<= (ai_living_count 331) 0))
(ai_place 311)
Rename your AI to 311, for example where it says johonson rename to 311
t_mann05




Articulatist 250

Posts: 361
Joined: Fri Dec 02, 2005 7:46 pm

Post by t_mann05 »

so that will make the respawn? can u take a screenshot of where you enter that script at and rename the character to 311?
Post Reply