Jump to content

Sign in to follow this  
splatsh

Mobile respawn, how to, this is what I have so far?

Recommended Posts

How to easy setup a mobile respawn.

This is what I have so far, but I want to make my mash tent to be my respawn point. How to do it?

I have this in my "description.ext"

respawn="BASE";
respawndelay = 10;

I have one trigger that is activated by radio to build my mash tent with.

if(!isNull base) then { deletevehicle base; };
waitUntil {alive player};
base = "MASH" createVehicle (position player);
base setvehiclevarName "respawn_west";
sleep 2;
base setVehicleInit "this setVehicleVarName 'respawn_west'";

But I am not respawn at that tent, when I tryed my mission and got killed I was respawned at my dead body after 10 sec.

So what is wrong and how do I make my mash tent to be a respawn point?

Thanks

Share this post


Link to post
Share on other sites

I've never done any MP or at least not since OFP but isn't just a case of moving a marker.

so if you have a tent named mash it might look like this.

"respawn_west" setmarkerpos [getpos mash select 0, getpos mash select 1];

Share this post


Link to post
Share on other sites

Sorry, I cant get it to work, can someone be nice and make one sample for me.

I want to build a mash tent with a trigger set up to activate on radio

"Build respawn tent"

On Activation: null0 = [] execVM "build_spawn.sqf"

build_spawn.sqf

if(!isNull base) then { 
deletevehicle base; 
base = "MASH" createVehicle (position player);
base setvehiclevarName "MobileSpawn";
base setVehicleInit "this setVehicleVarName 'MobileSpawn'";
};

Now when I play, I can setup that tent anywhere.

And I want to respawn there to, but I cant get the respawn to work.

I am only respawn at my dead body.

How to set up so I can respawn at my mash tent (MobileSpawn)

Please, please make one sample so I can see all.

Thanks.

Share this post


Link to post
Share on other sites

I think your over complicating it, I did some tests and got it to work quite easily.

Using the description.ext as you have it.

Then all I did was create a marker and named "respawn_west" ellipse type not sure about icon.

If you place this where you start you will respawn there, later in the game you can move that point using the following code.

// nul=[nameofmashtent] execVM "respawnhere.sqf";

_unit   = _this select 0;

"respawn_west" setmarkerpos  [getpos _unit select 0, getpos _unit select 1];

now all you need to do is decide when in the game you want to change the respawn point to the mash tent.

you could have a trigger that goes off at some point and in the on act box put

nul=[nameofmashtent] execVM "respawnhere.sqf"

I've tested it and it works fine here. http://www.sendspace.com/file/ff4ghv

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Thank you I got it to work now with your help.

Thanks.

Share this post


Link to post
Share on other sites

No problem it was on my list of things to do.

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  

×