Home   Help Search Login Register  

Author Topic: Copying/Creating unit to replace destroyed! (Old WP alive and Active)  (Read 684 times)

0 Members and 1 Guest are viewing this topic.

sissiluutnantti

  • Guest
I have this one problem that I can't solve myself.

I have group of BMP:s and one is leader of course. Leader has a waypoint, like guard. Is it possible that when that group is destroyed it will "respawn" to start and the original waypoint is till active for that group, so it starts to navigate back to original waypoint.
It would be great thing to have those destroyed tanks to stay in field, but that's not possible I think?

Do I need a some kind of special script or is it possible to make somehow else.

I think I found a solution, but still if somebody have good idea. Write it here!
« Last Edit: 03 Jul 2003, 09:58:44 by sissiluutnantti »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Copying/Creating unit to replace destroyed!
« Reply #1 on: 30 Jun 2003, 15:22:14 »
if it sguard WP - it wil b alwayz active ;) :P

da same 4 hold WP  ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

sissiluutnantti

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #2 on: 01 Jul 2003, 10:03:41 »
No really. if someone has a good idea, please share it! That solution didn't work.

CrashnBurn

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #3 on: 01 Jul 2003, 15:49:43 »
I have this one problem that I can't solve myself.

I have group of BMP:s and one is leader of course. Leader has a waypoint, like guard. Is it possible that when that group is destroyed it will "respawn" to start and the original waypoint is till active for that group, so it starts to navigate back to original waypoint.
It would be great thing to have those destroyed tanks to stay in field, but that's not possible I think?

Do I need a some kind of special script or is it possible to make somehow else.

I think I found a solution, but still if somebody have good idea. Write it here!


If the group has completed a waypoint, such as a move waypoint, then it's gone. LCD is right. Use a guard waypoint and it will always be active, including for created units.

HuNtA

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #4 on: 01 Jul 2003, 17:00:23 »
I think what his prob is that after the whole group is destroyed, the wp dissapears because there is no1 left to carry it out
add this to the respawn to every member of the group:
BMP doMove getPos place

deaddog

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #5 on: 01 Jul 2003, 17:38:01 »
I had the same problem once.  I just placed a cycle waypoint after the guard waypoint and never had a problem with the respawned units working properly.  The new units always responded as they should.

sissiluutnantti

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #6 on: 02 Jul 2003, 10:03:45 »
I think what his prob is that after the whole group is destroyed, the wp dissapears because there is no1 left to carry it out
add this to the respawn to every member of the group:
BMP doMove getPos place

Yep, that's it. If the whole team is dead, the waypoint dissapears. How that BMP doMove getPos place works? How can I write that script to respawned unit? Thanx for advice!

CrashnBurn

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #7 on: 02 Jul 2003, 10:11:39 »
Nope, the waypoint does NOT disappear if the whole group dies, as long as the group has a groupname. Check my createunit tutorial in the editors depot. I create units for dead groups all day long and they use guard waypoints no problem.
« Last Edit: 02 Jul 2003, 10:15:39 by CrashnBurn »

deaddog

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #8 on: 02 Jul 2003, 14:56:37 »
Quote
Yep, that's it. If the whole team is dead, the waypoint dissapears. How that BMP doMove getPos place works?
I'm so glad my replies get read and people follow advice.

skid

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #9 on: 03 Jul 2003, 02:57:20 »
On the subject of a group being destryed could someone reming me how to do for that.
I carn't remeber how I did it before.

sissiluutnantti

  • Guest
Re:Copying/Creating unit to replace destroyed!
« Reply #10 on: 03 Jul 2003, 09:56:57 »
Lets put it this way.

I have a group of BMP (or soldiers or airplanes...) and the groupname is f1.
When mission starts I have ordered them to go guard-waypoint and after that is cycle-waypoint, so waypoints stay alive even the group is destroyed.
Now the difficult point:

When the whole group is dead (f1-group) how can I respawn them to an area that I have planned before (I have made multiplayer mission where player is respawned to planned area, but I have never do it with AI-troops with singleplayer) and they automatically set of course to old Guard-cycle waypoint.
This is the problem


If someone has a good script that I can use, please share it.