Jump to content
Sign in to follow this  
MadTommy

Any kind soul able to Help me make a mobile respawn please.

Recommended Posts

Hello all.

I'd like to have a mobile respawn point in my future missions. Very much like Domination does.

In another thread that has multiple topics i was given the following advice....

For mobile headquarter as a respawn point, just keep updating the base spawn marker continously to the MHQs position.

Which makes sense but does not help me implement it at all. I'm a scripting & mission making novice.

I've looked at the latest Domination mission but to be honest its just too complicated for me to work out what is going on. Maybe someone has a simpler mission with a respawn attached to a vehicle i can look at..

Any help in this area would be much appreciated.

Thank you.

Edited by MadTommy

Share this post


Link to post
Share on other sites

Probably the simplest way to start out is to do it the following way.

Say you have an HQ vehicle called 'myHQ' and have already placed a 'respawn_west' marker: set up a trigger to fire repeatedly, with the condition as 'true' (you can safely ignore the other options), and then put this in the onActivation line:

respawn_west setMarkerPos (getPos myHQ)

This will fire repeatedly, and move the marker to the location of the vehicle. Further improvements could be made by using a script and moving the marker less frequently, to reduce the bandwidth requirement in an MP game (even though it's pretty tiny, anyway).

Share this post


Link to post
Share on other sites

I recommend the revive script made by norrin. It includes a mobile respawn (multiple mobile respawns in future versions) + a lot of other features. You easily setup which feature you want by setting up some parameters in a single file for each mission. Simply great :)

Share this post


Link to post
Share on other sites
Probably the simplest way to start out is to do it the following way.

Say you have an HQ vehicle called 'myHQ' and have already placed a 'respawn_west' marker: set up a trigger to fire repeatedly, with the condition as 'true' (you can safely ignore the other options), and then put this in the onActivation line:

respawn_west setMarkerPos (getPos myHQ)

This will fire repeatedly, and move the marker to the location of the vehicle. Further improvements could be made by using a script and moving the marker less frequently, to reduce the bandwidth requirement in an MP game (even though it's pretty tiny, anyway).

That dosnt seem to work. Marker dosnt change position.

Share this post


Link to post
Share on other sites

Yeah, I just noticed that. There must have been a (sensible) change in the way triggers work in Arma2... because setting a trigger's condition to true no longer allows it to repeat indefinitely.

Instead, put this into your init.sqf:

execVM "updateSpawn.sqf"

Then put this into "updateSpawn.sqf" in your mission folder:

for "_i" from 1 to 1000000 do {
   respawn_west setMarkerPos (getPos myHQ);
   sleep 1;
};

Edited by JamesF1

Share this post


Link to post
Share on other sites

The exact same stuff I pasted above is working here. Are you sure you've placed a marker named "respawn_west" and have your HQ object named "myHQ"?

Share this post


Link to post
Share on other sites

Done exactly as you wrote, im certain. Could it have something to do with the HQ also running all kinds of scripts in it's ini? The init.sqf is also full of stuff.

Share this post


Link to post
Share on other sites

Condition: time % 5 > 4

Repeatable trigger.

Makes it trigger every five seconds.

Btw, if you want to have this work in MP with JIP, you might want to use either a preplaced marker in the editor, or createMarkerLocal for each player during their playersetup.

Edited by CarlGustaffa

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  

×