Jump to content

Shinotama

Member
  • Content Count

    15
  • Joined

  • Last visited

  • Medals

Posts posted by Shinotama


  1. Ok.. So I managed to get the "forEach" script working but I tried putting the gun into the init line of the soldier and it just loads but without the gun "up" and no knowledge of it in the top right so I have returned it back to how it was.

    This is coming along well.

    So I don't understand this "Switch" statement? How will that help me?

    //###################################################//

    // MISSION LOADOUT SCRIPT CREATED BY SHINOTAMA

    //

    // INSERT THE BELOW LINE INTO THE INITIALIZATION OF THE SOLDIER IN QUESTION

    //

    // null = [unitname] execVM "filepath\filename.sqf";

    //###################################################//

    // SELECTS THE UNIT IN QUESTION //

    _unit = _this select 0;

    // REMOVES ALL YOUR WEAPONS //

    removeAllWeapons _unit;

    // AMMO //

    {_unit addMagazine "30Rnd_556x45_Stanag"} forEach [1,2,3,4,5,6];

    {_unit addMagazine "7rnd_45acp_1911"} forEach [1,2,3,4];

    {_unit addMagazine "1Rnd_HE_M203"} forEach [1,2,3,4];

    {_unit addMagazine "Handgrenade_west"} forEach [1,2,3,4];

    // PRIMARY WEAPON //

    _unit addWeapon "SCAR_L_STD_EGLM_RCO";

    // SECONDARY WEAPON //

    //PLACEHOLDER//

    // SIDEARM WEAPON //

    _unit addweapon "Colt1911";

    // VISUAL EQUIPMENT //

    _unit addweapon "Binocular_Vector";

    // SET YOUR DEFAULT WEAPON //

    _unit selectweapon "SCAR_L_STD_EGLM_RCO";


  2. Done Done & Done, Check out my Spoiler for the code

    //###################################################//

    // MISSION LOADOUT SCRIPT CREATED BY SHINOTAMA

    //

    // INSERT THE BELOW LINE INTO THE INITIALIZATION OF THE SOLDIER IN QUESTION

    //

    // null = [unitname] execVM "filepath\filename.sqf";

    //###################################################//

    // SELECTS THE UNIT IN QUESTION //

    _unit = _this select 0;

    // REMOVES ALL YOUR WEAPONS //

    removeAllWeapons _unit;

    // ADD YOURSELF SOME EQUIPMENT & AMMO //

    // AMMO //

    _unit addMagazine "30Rnd_556x45_Stanag";

    _unit addMagazine "30Rnd_556x45_Stanag";

    _unit addMagazine "30Rnd_556x45_Stanag";

    _unit addMagazine "30Rnd_556x45_Stanag";

    _unit addMagazine "7rnd_45acp_1911";

    _unit addMagazine "7rnd_45acp_1911";

    _unit addMagazine "7rnd_45acp_1911";

    _unit addMagazine "7rnd_45acp_1911";

    _unit addMagazine "1Rnd_HE_M203";

    _unit addMagazine "1Rnd_HE_M203";

    _unit addMagazine "Handgrenade_west";

    _unit addMagazine "Handgrenade_west";

    // ADD YOURSELF SOME GUNS & EQUIPMENT //

    // PRIMARY //

    _unit addWeapon "SCAR_H_STD_EGLM_Spect";

    // SECONDARY //

    // SIDEARM //

    _unit addweapon "Colt1911";

    // VISUAL //

    _unit addweapon "Binocular_Vector";

    // SET YOUR DEFAULT WEAPON //

    _unit selectweapon "SCAR_H_STD_EGLM_Spect";


  3. You sir..

    Are a f*****g legend, I would kiss you but I am now busy finding scripts =p

    I befriended you if thats all cool if I get stuck again =)

    So you say the "Exit" does nothing then?

    Weird as most people tend to put it in..

    All this is for my "Black Hawk Down" mission I am working on, I am an avid fan of the Operation Flashpoint Series since day 1 =p, well my pre-order that I got a week early =D


  4. This is good progress guys =)

    Ok, I have used the script

    nul = [arguments] execVM "scripts\vampgear.sqf";
    in the initialization box on the individual soldier (Which has the tag "SABRE" for other mission triggers later on)

    I used the program "Arma Edit" to make my .sqf file

    The code I have used in my "Vampgear.sqf" is as follows

    removeAllWeapons this;

    Exit

    Yet when I try the mission in preview and multi-player, I select that soldier with the code, yet I still have the original weapons that he was given by default instead of having them removed.

    This would be apparent that either..

    1. The code is not working
    2. I am doing something very simple, very wrong

    Any ideas? I apologize as you can tell I am very new yet very eager, as soon as I sort this, my world of scripting opens up =)


  5. Hey guys, I am a complete noob to .sqf scripting..

    I would like to know if someone can point me in the correct direct as to a guide on how to initialize scripts in my mission at start as to be able to choose what weapons and ammo etc my characters have.

    I have been playing about with the execVM etc but I have no success..

    The other part would be that I have been told that I should put them in a folder called "Scripts" inside my mission folder, if this happens then can it also be explained as to how I start these scripts aswel..

    Thanks.. Any help would be amazing!!


  6. Hey guys, I'm new to the whole editing thing, spent many a hour recently trying to get to grips with things..

    I require help in finding out exactly where you put any SQF files if you need to use them and also I am after a simple to implement IED script that can attach itself to a person or vehicle so that it may drive along a road etc.

    Thank you for your help in advance =)

×