Home   Help Search Login Register  

Author Topic: Need script to respawn into next ranking AI  (Read 1236 times)

0 Members and 1 Guest are viewing this topic.

Offline DOA

  • Members
  • *
  • ArmA 2 Rules - Nothing else comes close!
    • The Graveyard Shift
Need script to respawn into next ranking AI
« on: 21 Jan 2004, 05:55:07 »
Can someone direct me to a script that will respawn a killed player into the next ranking or closest AI in the group. Thanks...DOA
« Last Edit: 21 Jan 2004, 05:55:38 by DOA »
ArmA 2 - Nothing else comes close!
--
DOA

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Need script to respawn into next ranking AI
« Reply #1 on: 21 Jan 2004, 07:15:42 »
No need to. You know descriotion.ext file? If not look it up at the editors depot. If yes, then insert these lines
respawn = 4
respawndelay = 5
Not all is lost.

Offline DOA

  • Members
  • *
  • ArmA 2 Rules - Nothing else comes close!
    • The Graveyard Shift
Re:Need script to respawn into next ranking AI
« Reply #2 on: 22 Jan 2004, 00:54:46 »
Thank you very much Artak.

Here is the mother of all respawn threads:
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=91

Here is a copy and paste form that thread:
--------------------------------------------------------------------------------
Adding Respawning
Create a new text document inside your mission directory. Write the following in this document:
Code:respawn=2;
respawndelay=20;

The value respawndelay is in seconds. Codes for respawn are below.

Save and close the document and rename it to description.ext
Make sure your system is set to display file extensions so that its name doesn't accidentally become "description.ext.txt".

Remember to set your units as playable in the editor. If you use the setting above they will now respawn where they died after 20 seconds.

Respawn Codes

  0 (or "NONE")
  - No respawn. The camera zooms slowly out from the player's corpse.

  1 (or ["BIRD"])
  - Respawn as a seagull after respawndelay.

  2 (or "INSTANT")
  - Respawn at the place of death after respawndelay.

  3 (or "BASE")
  - Respawn at a random spot in the side's marker zone after respawndelay.
    The names of the different zones are:
        West: respawn_west
        East: respawn_east
        Resistance: respawn_guerrila
        Civilians: respawn_civilian

  4 (or "GROUP")
  - Respawn into any alive AI in the player's squad after respawndelay.
    If noone is left then the player respawns as a seagull.

  5 (or "SIDE")
  - Exactly the same as number 4 (GROUP) - at least in v1.46.

Two pitfalls must be pointed out before you start testing:

1. Note that respawning will not work if you run the mission from the editor. You will have to Save and Export to Multiplayer, exit the Mission Editor, select Multiplayer, create a new server, select your mission, and test it.

2. If your rename your mission when exporting it, you'll be in trouble. The editor only copies the mission.sqm file and ignores everything else  It's easier to rename the mission folder in Windows before opening it in OFP and then exporting it with its new name.

Operation Flashpoint is the best military simulation. It has no peers that even rate a comparision...DOA
« Last Edit: 04 Jan 2009, 01:47:47 by Planck »
ArmA 2 - Nothing else comes close!
--
DOA