Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Maurdekye

Allow spawning on teammates through respawn menu

Recommended Posts

I've been able to use the respawn menu enabled in the description.ext, and with help from this forum it's been working great so far. The only problem I have is that I don't know how to add teammates as respawn locations.

Share this post


Link to post
Share on other sites

I don't want a script; I was told I needed one just for the respawn menu that I already figured out (which I didn't). If BH can include this functionality in their base missions, I should be able to as easily as the respawn menu.

Share this post


Link to post
Share on other sites
I don't want a script; I was told I needed one just for the respawn menu that I already figured out (which I didn't). If BH can include this functionality in their base missions, I should be able to as easily as the respawn menu.

There are basically two options: Either you use a script like the one provided with the respawnType "base" or you use the respawnTypes "group" or "side" and have enough switchable units in the group/on the side to switch to. That's how the "group"- and "side"-respawnTypes work: If you have to respawn, the game checks if there is a unit alive that you can switch to and upon respawn you take control of the unit you selected (wherever this unit is at that moment). If there's no unit alive, you respawn as seagull and can fly around, but not rejoin the game.

There's no implemented "spawn near my teammates"-function. If you were told there was, let me tell you: There isn't. ;)

Edited by Belbo

Share this post


Link to post
Share on other sites

In the base escape from stratis gamemode, you can definitely spawn nearby other teammates, not as them. I know this since I repeatedly was able to spawn next to my friend during the mission with my same starting load out.

Share this post


Link to post
Share on other sites

Yes. It's because this code is executed in the init.sqf of the mission:

	[] spawn {
	while {TRUE} do {
		"respawn_west" setMarkerPos position leader BIS_grpMain;
		sleep 30
	}
};

It does the same as my script, with less flexibility in mind. But if you don't believe me, may I refer you to the BIKI-page about the respawn in Arma 3: https://community.bistudio.com/wiki/Arma_3_Respawn

If you want to use just this, put this in your init.sqf:

	
if (isServer) then 
{
[] spawn {
	while {TRUE} do {
		"respawn_west" setMarkerPos position leader (group (vehicle player));
		sleep 30
	}
};
};

Edited by Belbo

Share this post


Link to post
Share on other sites

Really? Then thank you for that matter I am worried that doing this might cause lag.

Share this post


Link to post
Share on other sites

Nah... pushing a marker every half a minute around the map isn't much of a hazzle.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×