Home   Help Search Login Register  

Author Topic: Respawn dead AI??  (Read 469 times)

0 Members and 1 Guest are viewing this topic.

DC10_starvinmarvin

  • Guest
Respawn dead AI??
« on: 26 Dec 2003, 04:48:55 »
Hi again!

i am making sort of frontline mission. you are dug down along the front line and AI enemies are attacking in groups with like 2min or so between every group.

but making this mission last for a long time it would take alot of soldiers and heavy lag so i wonder if there is any easy way to respawn dead AI to start over at their "HQ"

Also is there a way to make the respawned soldiers to "group1" to wait untill all soldiers from group1 is respawned untill they go back into action???

i have been checking the forum for answers but havent found anything suiting.

Greetz //Marvin

sabreblade

  • Guest
Re:Respawn dead AI??
« Reply #1 on: 27 Dec 2003, 22:39:21 »
put these in the right order and everything. i don't know which order or the syntax to use but it can be done! use these commands and someone more experienced will surely help you put them in the right order! :-\ :-\

 condition:       not (alive deadsoldiername)
activation:       deadsoldiername setdamage 0 ; deadsoldiername setpos [X,Y,Z] ( or...   deadsoldiername setposgetpos HQ)

if you put a separate trigger over each soldier's respawn point then set each trigger to repeatedly whish west present in area then syncronize the triggers with the first waypoint of a cycle and teh soldiers will only go when the whole group is in place. the setpos commands would have t be the same place as the units' formation or the soldiers will stray away form their triggers.

hope this helped :-\ :-[

SB


DC10_starvinmarvin

  • Guest
Re:Respawn dead AI??
« Reply #2 on: 28 Dec 2003, 17:28:41 »
Hey! Great thanks man!

Sound a bit complicated but i guess it isnt ;)
ill try these out to see what i can get together.

Thanks again!

//Marvin

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Respawn dead AI??
« Reply #3 on: 30 Dec 2003, 01:02:49 »
Sabreblade's suggestion is pretty good.   However, it has two possible problems.   Firstly, you'll have bodies disappearing from right in front of you, which will look odd, and secondly you sometimes get problems with doing things to units that are dead.

Might be better to leave the dead where they are and use createUnit commands.

Alternatively, just place everybody in the Mission Editor but make the enemy "HQ" quite far away.   Distant units cause much less lag than close ones.   I wrote a wee tutorial on reducing lag once, it must be in the Ed Depot somewhere.    You might get some ideas from it.

You'll make the mission more interesting and more difficult if you do things like make the axis of attack different for each attacking group.   That way you will need fewer attack groups.

Remember to give the player a time and place to rearm and heal.
Plenty of reviewed ArmA missions for you to play

DC10_starvinmarvin

  • Guest
Re:Respawn dead AI??
« Reply #4 on: 30 Dec 2003, 01:24:20 »
roger that!
well i tell you about the mission.
im  planning a huge totalwar mission. you are using all three islands at once eden abel and cain. USSR got cain. FDF resistance got malden and US got everon.. USSR are trying to invade malden and US are going to assist. it will be really big.. the mission is basicly made for 2 players.. each are the superior commanders of each side. USSR are AI controlled.  but All under officers are going to be playable for others to join. i figured out how to do it all. the problem is that i want to have east ai to attack the island from different dirs and from choppers flying them in.. i know it sounds hard and that it would be very laggy but as you say longer distances reduces lag.. i did a test and filled the islands with units and there was only minor lag.
so i think this can be possible.

but plz give me advices in how i could make the AI attack and also attack again after respawning. i thought about that they only respawns once otherwise it would never end.  ;)

another problem is that if i have to add one or more triggers or write scripts for every unit on that map i would be done with it in 2059 ;)

is there any easier way to do this?

can the soldiers that are killed respawn and follow the same WP's again?

Greetz // Marvin