AI Scripting
-
- Posts: 22
- Joined: Fri Aug 11, 2006 4:03 pm
AI Scripting
Is there a tutorial for building AI becuase i wanted to do somthing like the Squads on Zanzibar But i wanted to do it on coag.
- xXxCocoFangxXx
- Posts: 3756
- Joined: Thu Sep 08, 2005 9:57 am
- Contact:
-
- Posts: 22
- Joined: Fri Aug 11, 2006 4:03 pm
RE
i have looked at the script for the squads on zanzibar
its
how would i like make it where if the ppl all die then they respawn and after they all die again its says you won...
like this maybe:?
or wat plz help
its
Code: Select all
(script startup respawner
(begin
(sleep_until (<= (ai_living_count 9) 0))
(ai_place 9)
))
like this maybe:?
Code: Select all
(script startup respawner
(begin
(sleep_until (<= (ai_living_count 9) 0))
(ai_place 9)
(sleep_until (<= (ai_living_count 9) 0))
(ai_place 9)
(sleep_until (<= (ai_living_count 9) 0))
(game_won)
))
-
- Posts: 130
- Joined: Tue Apr 04, 2006 4:54 pm
check the tutorials in the files forum... heres the best one http://files.halomods.com/viewtopic.php?t=59697
proper responing has not beed done yet...
the best script so far goes like this...
there are a few problems w/ scripted respawning...
1st is that specific squads cannot yet be specified
2nd is that the respawn its self has not been perfected.
there are 3 semi working ways, a startup script wich will respawn them like crazy for a few seconds then stop for the rest of the game. then there is a continiouse respawner wich will spawn them like crazy (2 per secod) and never stop, ann one script (the one above) that will spawn them in every incroment of time (u can set it by changing the (sleep 1000)
we are still working on perfecting it
proper responing has not beed done yet...
the best script so far goes like this...
Code: Select all
(script continuous respawner
(begin
(sleep 1000)
(sleep_until (<= (ai_living_count 0) 5))
(ai_place 0)
))
1st is that specific squads cannot yet be specified
2nd is that the respawn its self has not been perfected.
there are 3 semi working ways, a startup script wich will respawn them like crazy for a few seconds then stop for the rest of the game. then there is a continiouse respawner wich will spawn them like crazy (2 per secod) and never stop, ann one script (the one above) that will spawn them in every incroment of time (u can set it by changing the (sleep 1000)
we are still working on perfecting it
-
- Posts: 22
- Joined: Fri Aug 11, 2006 4:03 pm
RE
I know you think im retarded for asking but how do i null stuff in entity
-
- Posts: 130
- Joined: Tue Apr 04, 2006 4:54 pm
-
- Posts: 22
- Joined: Fri Aug 11, 2006 4:03 pm
re
how do i place all of them in different places becuz right now only 1 spawns and there is supposed to be 10...
-
- Posts: 22
- Joined: Fri Aug 11, 2006 4:03 pm
um
um i am working on a new mod on coag and i have tried the second squad but it seems to be freezing my xbox any ideas