Page 1 of 1

ai squad triggers

Posted: Wed Aug 02, 2006 9:09 pm
by srchrisknight
ok, as some of u know u need to edit the deathzones in sp to spawn ai. well i want to know how to link specific squads to a certain trigger (death zone) anyone know how?

Posted: Wed Aug 02, 2006 10:00 pm
by turk645
i think it is script based considering im trying to use those in a vehicle teleporter script.

Posted: Wed Aug 02, 2006 10:24 pm
by srchrisknight
script base? how so?

Posted: Thu Aug 03, 2006 4:47 am
by turk645
Basicly it would be used for something like telling and entire squad in the area to do something. I could post an example later if you want.

Posted: Thu Aug 03, 2006 8:46 am
by srchrisknight
yea that'd be cool, but are u sure the triggers qwould be linked in there? cuz i've got them in the map i want i just can't link them

Posted: Thu Aug 03, 2006 10:50 am
by turk645
If i read it right you want to spawn ai when you get to a certain spot in order to do that you have to write a script to get it to be triggered when you hit the trigger zone. An example script would be one from old membasa...

Code: Select all

(script dormant e13_cov_ghosts1_main
 (begin
   (sleep_until (volume_test_objects tv_e13_cov_creep0_6_begin (players)) 15)
   (ai_place e13_cov_ghosts1)
))
You would have to write a script like that to get something to spawn. The "tv_e13_cov_creep0_6_begin" is the trigger zone. That is how it is linked to the ai.

Posted: Thu Aug 03, 2006 1:03 pm
by srchrisknight
kk, thnx for the info