AI
Moderator: Moderators
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
AI
ok, I followed the tut for AI spawning and I got the guy to run to a pathnode and shoot at me... whatd I ever do to him, he just kinda shot at me! geez... anyway
ok, so that works perfectly fine, but to add another pathnode what do i put in the entity options? do i put
Key: #set
Value: 2
to make it so the guy runs to it after he runs to number one? or should i have enemyspawnerdestination target enemyspawnerdestination2... or neither?
please help
ok, so that works perfectly fine, but to add another pathnode what do i put in the entity options? do i put
Key: #set
Value: 2
to make it so the guy runs to it after he runs to number one? or should i have enemyspawnerdestination target enemyspawnerdestination2... or neither?
please help
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
-
Green Beret
- Major General
- Posts: 746
- Joined: Mon Apr 19, 2004 12:21 pm
- Contact:
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
ok, I made it so that 9 ai follow a straight path in a single file line (perfect for 1 shot 2 kills
) but now I want one dude to follow this path and I want one dude to follow that path but i want them to both run at the same time when i walk into the trigger. should i make them both
#group
1
then make one dude
$set
1
and the other
#set
2
please help me!
#group
1
then make one dude
$set
1
and the other
#set
2
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
aight look:
I have 9 AI (ai>actor with given models such and such) and i want them all to run a different line of pathmodes but I want them all to run at the same time. Now, I have everything set up and stuff like that all i need to know is for the first AI do I put group 1 set 1 then for the second: group 1 set 2 and so on for all 9 of my AI and every pathnode for that specific guy?
[1] [1a]-->--[1b]-->--[1c]-->--[1d]-->--[1e]-->--[1f]
[2] [2a]-->--[2b]-->--[2c]-->--[2d]-->--[2e]-->--[2f]
[3] [3a]-->--[3b]-->--[3c]-->--[3d]-->--[3e]-->--[3f]
[4] [4a]-->--[4b]-->--[4c]-->--[4d]-->--[4e]-->--[4f]
this is basically what i have only theres 9. I can get 1 to run to 1a all the way to 1f but then when I add another guy to run at the same time (2) they dont work. So do i make them all in the same group but just add one to the set number for each new ai that I add in?
so:
1 will have group 1 set 1
2 will have group 1 set 2
3 will have group 1 set 3
1a - 1f will have group 1 set 1
2a - 2f will have group 1 set 2
3a - 3f will have group 1 set 3
then in script:
thread global/ai.scr::spawngroup #1 #1
thread global/ai.scr::spawngroup #1 #2
thread global/ai.scr::spawngroup #1 #3
is the first # the group number and the second # the set number?
then what would I do for the trigger_multiple? Do I just make one trigger_multiple for each set that I want to run?
is this correct? if not please help me!
I have 9 AI (ai>actor with given models such and such) and i want them all to run a different line of pathmodes but I want them all to run at the same time. Now, I have everything set up and stuff like that all i need to know is for the first AI do I put group 1 set 1 then for the second: group 1 set 2 and so on for all 9 of my AI and every pathnode for that specific guy?
[1] [1a]-->--[1b]-->--[1c]-->--[1d]-->--[1e]-->--[1f]
[2] [2a]-->--[2b]-->--[2c]-->--[2d]-->--[2e]-->--[2f]
[3] [3a]-->--[3b]-->--[3c]-->--[3d]-->--[3e]-->--[3f]
[4] [4a]-->--[4b]-->--[4c]-->--[4d]-->--[4e]-->--[4f]
this is basically what i have only theres 9. I can get 1 to run to 1a all the way to 1f but then when I add another guy to run at the same time (2) they dont work. So do i make them all in the same group but just add one to the set number for each new ai that I add in?
so:
1 will have group 1 set 1
2 will have group 1 set 2
3 will have group 1 set 3
1a - 1f will have group 1 set 1
2a - 2f will have group 1 set 2
3a - 3f will have group 1 set 3
then in script:
thread global/ai.scr::spawngroup #1 #1
thread global/ai.scr::spawngroup #1 #2
thread global/ai.scr::spawngroup #1 #3
is the first # the group number and the second # the set number?
then what would I do for the trigger_multiple? Do I just make one trigger_multiple for each set that I want to run?
is this correct? if not please help me!
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
i guess so... have you looked in the sub level(where you sabotage the thnig and come out and everyone startes shooting at you? maybe you might want to try the one after that)? (m2lsomething) But what you have looks right... have you tested it yet?
I think you make it for each set... (set being the 'wave' now...)then what would I do for the trigger_multiple? Do I just make one trigger_multiple for each set that I want to run?
So 9 paths 9 enemyspawnerdestination's with different group numbers and 9 ai's each haveing one of the 9 group numbers no 2 ai's haveing the same group number but all 9 ai's haveing the same set number . The set number of the enemyspawnertrigger is the same set number as the ai's// You can make him run to a specific destination by creating a pathnode with targetname "enemyspawnerdestination" and giving
// both the node and the spawner the same #group value. Don't give any other spawner/node pair the same #group value.
//
// Give the node and spawner the same #set value (doesn't have to be the same as the #group value).
//
// You can create a trigger_multiple with targetname "enemyspawnertrigger" to set off the spawning. Give it the same #set value
// as whichever spawners you want it to set off. Or you can do "thread global/ai.scr::spawn #" where # is the #set value you
// want to set off.
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
i'm making a squad script that updates the AI (uses their AI, but more efficiently) and makes them go in commandable (optional) squads. works for Germans and Americans... still a long way to go yet but..
i am! pick me pick me!
i am! pick me pick me!
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:





