Home   Help Search Login Register  

Author Topic: Seperate Respawn  (Read 3122 times)

0 Members and 1 Guest are viewing this topic.

MR_TROUBLE

  • Guest
Seperate Respawn
« on: 26 Sep 2002, 04:25:35 »
Ok I've searched all over the forums and other sites for this, can't find the solution.  On West side I have ground troops and pilots.  I want to make it so the pilots respawn at the airbase, and the ground troops respawn at a base farther away but on the same island.

How do I make this happen?

Thanks!

chill

  • Guest
Re:Seperate Respawn
« Reply #1 on: 26 Sep 2002, 16:12:35 »
There is a way but its a bit like startrek lol. Try this
Name the pilot or whoever eg: pilot, then where you want him to go eg: "Airbase" in the name of a gamelogic. Then make a trigger and put this in:
"pilot getpos setpos Airbase"
When the pilot respawns he will go straight to the airbase.

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #2 on: 26 Sep 2002, 17:20:06 »
Thanks.  Im trying it but I'm having a problem with the line:

pilot getpos setpos Airbase

I get an error telling me "unknown operator getpos"

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:Seperate Respawn
« Reply #3 on: 26 Sep 2002, 20:40:05 »
Thats because they are the wrong way round.  

Pilot Setpos (Getpos Airbase)

Is what you are looking for.

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #4 on: 27 Sep 2002, 03:49:55 »
Well Im not getting that error anymore, but I'm respawning where I die instead of either at the base for ground troops or airbase for pilots.

I'm not sure what to put for the description.ext file.  I've tried variations.  If I put a marker for "respawn_west" and put "respawn=base" in the .ext file, then I will respawn where the marker is instead of how I want it where the pilots respawn at the airbase, and the ground troops at the main base.

If YOU were going to make this happen, how would you accomplish it easily?  I have 2 pilots at the airbase named p1 and p2.  I have a game logic there named "airbase" and a trigger set for west activation, repeatedly, and "p1 Setpos (Getpos airbase)"  in the act field and the same set up for p2.  I have 6 ground troops at the other base named s1 through s6.    

Thanks for the help guys..

chill

  • Guest
Re:Seperate Respawn
« Reply #5 on: 27 Sep 2002, 06:10:41 »
In your trigger, put it right near your respawn. Make sure you group it to the pilot and then he will be moved to the airbase. The whole thing gets done in the trigger and not the desc file.

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #6 on: 27 Sep 2002, 06:59:48 »
Ok I grouped the 2 triggers for p1 and p2 to p1 and p2.  Without the description.txt file I'm now respawning as a bird. LOL.  Do I still need a respawn_west marker?  Thanks!

chill

  • Guest
Re:Seperate Respawn
« Reply #7 on: 28 Sep 2002, 08:11:18 »
Yes you allways need your respawn marker. After you respawn your trigger will move you to the airbase.

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #8 on: 28 Sep 2002, 10:53:59 »
Aint working..thanks anyway.

Mike

  • Guest
Re:Seperate Respawn
« Reply #9 on: 01 Oct 2002, 07:39:18 »
If YOU were going to make this happen, how would you accomplish it easily?  I have 2 pilots at the airbase named p1 and p2.  I have a game logic there named "airbase" and a trigger set for west activation, repeatedly, and "p1 Setpos (Getpos airbase)"  in the act field and the same set up for p2.  I have 6 ground troops at the other base named s1 through s6.

Do it all up like it was there exept you wont need the detected by west thing. Then make the Condition field of the triggers:

alive p1

then the same for p2 exept match up the names  "alive p2"

so the trigger will activate when the player spawns
« Last Edit: 01 Oct 2002, 07:40:34 by Mike »

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #10 on: 01 Oct 2002, 08:00:45 »
I've tried this, and Im still respawning as a bird.  I tried using a respawn_west marker but in order to use the marker you need the respawn and respawn delay in the description.ext files.  But I was told that the desc.ext file was not needed and that everything works off the tiggers and game logic.

1.  Is a respawn marker needed and if so, is it respawn_west?
2.  Is a description.ext file with respawn values needed?

And I thought this was going to be an easy one! :-\

Mike

  • Guest
Re:Seperate Respawn
« Reply #11 on: 01 Oct 2002, 08:10:06 »
yes you need both the discription with all respawn info in it, the marker so your ground units will respawn where you want them.. then the triggers for the few oddballs you want to move away to the airport..  :cheers:

MR_TROUBLE

  • Guest
Re:Seperate Respawn
« Reply #12 on: 01 Oct 2002, 08:12:38 »
Ok i think I figured it out.  I went ahead and laid a respawn_west marker at the main base where the ground troops are located and I added a description.ext file with respawn=base
respawndelay=10

This appears to make it work as my pilots now respawn seperately at the airfield, and the ground troops at the main base.  

Thanks!!!