Results 1 to 6 of 6

Thread: Sync First Aid modules after spawn/join

  1. #1

    Sync First Aid modules after spawn/join

    Hi,

    Is there a way to sync the spawned and joined units to the first aid modules?
    I found some older threads about the issue and wanted to ask if someone found a solution to the issue?
    I can sync them to newly spawned and joined unit with new created modules and synchronizedObjectsAdd. The wounds work on them (Agony state) but the First Aid action shows up but doesn´t respond. Dragging and carrying works without problem.

  2. #2
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    any updates on this?

    ---------- Post added at 01:51 PM ---------- Previous post was at 01:05 PM ----------

    i got same issue in SP editor with synching to old module as melmarkian did, solved it by creating a new set of identical modules and instantly synching them to unit, the 0.5 second rule of synch.
    all working, no issues on other units having synch to old mods, and new spawned unit works fine, tried with 3 total sets of all 3 firstaid mods active same time, seems to be no limit to amount on this.
    My scripts:
    Spoiler:

    what to do when posting any kind of code dammit!!

    Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.

  3. #3
    Sergeant Melmarkian's Avatar
    Join Date
    Jan 11 2011
    Location
    Germany
    Posts
    123
    Author of the Thread
    Thanks, I will test it.

    Do you have an example? Because I thought I did it the same.

  4. #4
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    parts taken out of preset loadouts v 1.51:

    PHP Code:
            _synch synchronizedObjects _oldUnit;
            
    _fa = ["FirstAidSystem","AlternativeInjurySimulation","BattleFieldClearance"];
            {
                
    // first aid modules.
                
    if ((typeOf _xin _fathen {
                    
    _grp createGroup sideLogic;
                    
    _logic _grp createUnit [(typeOf _x),[0,0,0],[],0,"NONE"];
                    
    _logic synchronizeObjectsAdd [_newUnit];
                };
            } foreach 
    _synch

  5. #5
    Sergeant Melmarkian's Avatar
    Join Date
    Jan 11 2011
    Location
    Germany
    Posts
    123
    Author of the Thread
    Hi,

    I just noticed my issue is a different one:
    The sync doesn´t work when new units join an existing group

  6. #6
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    hmm will investigate this, i had all my units in seperate groups when doing the above.
    but it should not matter really. as synch is not related to group in anyway.
    Or maybe only leader can be synched, but there are threads describing otherwise so its guesswork at the moment.

Posting Permissions

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