OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Calamity on 18 Aug 2003, 03:10:31

Title: Drift to new guy
Post by: Calamity on 18 Aug 2003, 03:10:31
Ok guys,
I know this one should be simple but I can't find it in a search. How do I make is so that when a player is killed he drifts over and takes contoll of another unit in his group?
I have seen it done in a cooperative mission but I can't duplicate it. I have 4 playable units in a group. the player is the first unit. When he gets killed he should drift over to the next guy.
It looks like it should be very simple. but it didn't work like I though it would.
Very frustrating.
Title: Re:Drift to new guy
Post by: Killswitch on 18 Aug 2003, 03:24:58
First, read the sticky post at the top of this forum - the process of "drifting to a new guy" is one aspect of "respawning".

The solution:

Code: [Select]
respawn=group

in a text file named "description.ext" (Note: not "description.ext.txt") in your mission folder. "Your mission folder" in this context is the place where the mission.sqm is.

Also, the two following variants are also syntactically correct:

Code: [Select]
respawn="group"

Code: [Select]
respawn=4
Title: Re:Drift to new guy
Post by: Calamity on 18 Aug 2003, 14:35:41
Oh Crap!
I knew it would wind up being in the Description.ext. I will try this tonight!
Thanks Killswitch!
Title: Re:Drift to new guy
Post by: Calamity on 18 Aug 2003, 23:58:23
That was the fix.
Thanks Guys!