Help using combatSupportAdd function

  1. 8 years ago
    Edited 8 years ago by revdogma

    First of all do i understand this right? I could use this to "spawn" in a CAS, Transport, or arty after init? So mid-game i can call it and it will sync or be synced to the support combat module?

    If im not wrong I guess i need help formatting it all out.

    This is in combatSupportAdd.sqf being called in the init with execVM "combatSupportAdd.sqf";

    SpawnArty = { ["ARTILLERY",[[12271.9,8955.47,0],60,"B_MBT_01_arty_F","PHOENIX 1","",""]] Call ALiVE_fnc_combatSupportAdd; };

    then im throwing this into the OnActivation of a trigger:

    0 = [] call SpawnArty ;

    Am I confused? lol

    Also is there away to call the sub-mod to spawn on say a marker?

  2. Darn! Nobody?

  3. Will answer later when I'm back to my PC, are you getting any script errors?

  4. Edited 8 years ago by revdogma

    SPYDER the hero of the forums!

    No, thats the issue no script error I probably tweaked it a few dozen ways and i never generated an error...=/

  5. Edited 8 years ago by SpyderBlack723

    It looks like these post-init functions do not support ARTILLERY, only TRANSPORT and CAS for whatever reasons (possibly bugged).

    Also is there away to call the sub-mod to spawn on say a marker?

    To get the position of a marker you can do

    markerPos "markerName";

    ex.

    markerPos "postInitSpawn_1";
  6. You're my hero! I dont know why i didnt even think to try a different support type! Thank you thank you! This was the final piece to my mission! haha spent hours screwing with it!

 

or Sign Up to reply!