Results 1 to 10 of 10

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

  1. #1

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

    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....
    Quote Originally Posted by CarlGustaffa View Post
    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.
    Last edited by MadTommy; Jun 25 2009 at 09:09.

  2. #2
    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:
    Code:
    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).
    Want a casual but realistic Arma experience? Join HMM Squad!
    OFPEC - The Editing Center
    JamesBurgess.co.uk

  3. #3
    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

  4. #4
    Thank you very much. Very helpful

  5. #5
    Quote Originally Posted by JamesF1 View Post
    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:
    Code:
    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.

  6. #6
    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:
    Code:
    execVM "updateSpawn.sqf"
    Then put this into "updateSpawn.sqf" in your mission folder:
    Code:
    for "_i" from 1 to 1000000 do {
        respawn_west setMarkerPos (getPos myHQ);
        sleep 1;
    };
    Last edited by JamesF1; Jun 25 2009 at 15:55.

  7. #7

  8. #8
    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"?

  9. #9
    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.

  10. #10
    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.
    Last edited by CarlGustaffa; Jun 25 2009 at 19:00.
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •