Results 1 to 7 of 7

Thread: How to give units placeable fotifications?

  1. #1

    How to give units placeable fotifications?

    Hey,

    I was wondering if it was at all possible to give units (Like engineers) peaceable fortifications such as sandbags and wire etc. I am aware that apparently ace has this feature built in but I've no idea how to use it so please don't message me back saying "Ace has it like" like some guy did on the last forum I was on! :P

  2. #2
    Some guy, indeed.

    The thing is that placeable fortifications aren't trivial. Given how much effort you seemed to put forth in your question to make clear how much previous research you'd done before posting said question, twice it would seem, makes one question if the effort in providing a comprehensive answer to the question wouldn't just be met with blank stares and disappointment.

    That said, a friend of mine is working on a stand alone system that would give units just those kind of abilities (as seen in this mission) but major upgrades are still coming. If you wanted to slog through the possibly buggy what-he-has-so-far version you're quite welcome to.

    Or, as a wise man once said, play with ACE - it's got it already. Or COIN.

  3. #3
    I am aware that apparently ace has this feature built in but I've no idea how to use it
    Could you please explain how I would go about using it?

  4. #4
    MSO does something similar to this, if you want to dig through their code.

  5. #5
    Quote Originally Posted by Badwolf466 View Post
    Could you please explain how I would go about using it?
    It's part of the Self Interaction system when you have a sandbag in your inventory. Select that then you'll get a little floating sandbag attached to you. You can Shift-Wheel, Alt-Wheel and Ctrl-Wheel to move things around. Then action menu to confirm the placement.

  6. #6
    Staff Sergeant hogmason's Avatar
    Join Date
    Mar 30 2012
    Location
    Newcastle, Australia
    Posts
    398
    i stripped this out of a mission a while back a played around a bit with it any way to give a soldier the ability to build a sandbag wall just do the following

    in the editor name your unit i.e sgt

    in the editor create a trigger with Activation non and not present also Type None

    in trigger have
    Code:
    Condition = alive sgt
    
    On Act = sgt execVM "config_sgt.sqf";
    now config_sgt.sqf
    Code:
    sgt exec "sgt_add_build_cover.sqf";
    now sgt_add_build_cover.sqf
    Code:
    if (alive sgt) then {
    
    _actionId = sgt addAction ["Build Cover", "build_cover.sqf", [], -1, false, true, "", "(_target == _this)"];
    now build cover.sqf
    Code:
    _manall = _this select 0;
    _idall = _this select 2;
    if (alive _manall) then
    {
    _manall removeAction _idall;
    
    _manall switchMove "AinvPknlMstpSlayWrflDnon_medic";
    sleep 1.8;
    _manall switchMove "amovpknlmstpsraswrfldnon_gear";
    
    _cover1 = "Land_BagFenceRound" createVehicle [0,0,0];//<=======this is the object class name that you whish to build
    _cover2 = "Land_BagFenceRound" createVehicle [0,0,0];//<=======this is the object class name that you whish to build
    _cover1 setDir ((direction _manall) -180);
    _cover1 setPosATL (_manall modelToWorld [0,1.4,((position _manall) select 2)]);
    _cover2 setDir ((direction _manall) -180);
    _cover2 setPosATL (_manall modelToWorld [0,1.4,((position _manall) select 2) -0.7]);
    
    //_cover1 setVehicleInit "this allowDamage false";
    //_cover2 setVehicleInit "this allowDamage false";
    
    //processInitCommands;
    
    //[] spawn L_Points;
    sleep .2;
    
    _manall addAction ["Build Cover", "build_cover.sqf", [], -1, false, true, "", "(_target == _this)"];
    };

    thats it now just repeat allsteps for every player unit on your mission just have them all point to the one build_cover.sqf file.

    you can also use a point system so players cant do it unless they have say 2 points then they lose the 2 points to use it just let me know if you need to know how

    Operation HOG TaskForce 66 Combat Ops COMING SOON!!! -- CooP x dynamic mission with over 50 different random tasks
    HOG MHQ v1.0
    HOG Mechanic v1.0

  7. #7
    Quote Originally Posted by hogmason View Post
    now config_sgt.sqf
    Code:
    sgt exec "sgt_add_build_cover.sqf";
    execVM

Similar Threads

  1. Customizing the SOM factions & units, give me somthing
    By vonsteimel in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 5
    Last Post: Mar 29 2012, 23:39
  2. Make the BAF IED's placeable in the editor
    By colonel stagler in forum ARMA 2 & OA - SUGGESTIONS
    Replies: 11
    Last Post: Oct 21 2010, 10:37
  3. Placeable IED's ?
    By Ish in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 12
    Last Post: Aug 15 2010, 16:49
  4. How to give pistols to previous units?
    By Cloney in forum GENERAL
    Replies: 1
    Last Post: Jul 6 2002, 16:01
  5. How to give pistols to previous units?
    By bugkill in forum GENERAL
    Replies: 1
    Last Post: Jul 6 2002, 15:29

Posting Permissions

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