Jump to content
Sign in to follow this  
LukeyJ

Re Spawning?

Recommended Posts

Hi Ya Everyone!

I am currently trying to make a mission in the ArmA editor. It so far runs pretty fine and is looking to be quite good. The issue is that no one can respawn when they die. I have set all the required troops as playable. I have also tried when hosting in multiplayer mode to disable AI troops that are set as playable in the mission editor. What ever I have tried so far has not worked, I keep ending up as a seagul.

Does anybody know how to overcome this problem? If so, would you please be able to help? Thanks!

I have had a little bit of a look on BI Wiki pages at scripting, but I'm a bit unsure on what codes to use and where/how to use them (where to put them and how to relate them to specific troops or specific parts of a mission etc!?)

Any help would be very much appreciated.

Thanks for your time

LukeyJ

Share this post


Link to post
Share on other sites

Create a file called description.ext if you don't have one. In there, you should put

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">respawn=1

Replace 1 with one of the following:

Quote[/b] ]

RespawnType Description

0 or "NONE" No respawn

1 or "BIRD" Respawn as a seagull

2 or "INSTANT" Respawn just where you died.

3 or "BASE" Respawn in base. Requires a marker named:

respawn_west

respawn_east

respawn_guerrila

respawn_civilian

4 or "GROUP" Respawn in your group (if there's no AI left, you'll become a seagull).

5 or "SIDE" Respawn on your side (if there's no AI left, you'll become a seagull) - planned, but was never implemented.

Lots of useful information

Share this post


Link to post
Share on other sites

Thanks for your help so far, but I am still unable to get a respawn to work!

What programe should I use to write these scripts? Are scripts readable by ArmA when written and saved as a notepad file? (I did call the file "description.ext" - will I need to set windows to read ext,If so how do you do this?)

I am also unsure, where exactly I should save the file to, so that ArmA can find it!? banghead.gif

Share this post


Link to post
Share on other sites

Hi LukeyJ

All scripts in ArmA are in the main like OFP and go in the editor version of your mission folder. When you export them to single or multi-player they get PBOed for general use outside the editor.

The editable version of your missions are in your My Documents/ArmA/missions folder or in your My Documents/ArmA other Profiles/user name/missions folder. Each mission has its own folder which ends in with dot extension denoting the island it is on; so .sara for Sahrani

You can learn how to script by reading the tutorials and references scripts here.

http://www.ofpec.com/

Start with these tutorials for OFP, ArmA has some differences but in the main this is the basics; there is a Respawning Tutorial by Planck half way down this page:

http://www.ofpec.com/ed_depot/tutes.php

The link in the post above by HulkingUnicorn gives you the official wiki for all the BIS editing. That tells you about any differences between OFP code and ArmA code. Over time a lot of the OFPEC stuff will migrate there.

Scripts can edited in notepad or which ever text editor you prefer. There are lots of other tools about there may even be some nice OFP script editors. Have a look at OFP info and OFPEC

To begin with just find a mission that has a re-spawn in it; DePBO it (You will need a DePBO tool) and copy the required scripts to you mission and then edit them to suit.

I suggest you hunt out the ECL MP scripts by Terox as they are designed for mission makers who do not want to get too much into coding. They are well written and include loads of simple examples as well as good solutions to complex problems a beginning mission maker is going to find hard.

Be aware you are entering the world of programming here. Keep it up and you will become a game modder the people who eat h4x0rs for breakfast and talk in pure math.  biggrin_o.gif

I will ask a moddie to move this thread to "ArmA - MISSION EDITING & SCRIPTING" which is where it really should be and is probably the best place for people to answer your questions.

Be nice and loose Mr Angry it puts people off from answering your posts  wink_o.gif

Kind Regards Walker

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×