Jump to content

Conmanxful

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Posts posted by Conmanxful


  1. So, as the title suggests i'm having a problem getting self-made missions to work on a dedicated server. I can't figure out why this is happening and it's really begininng to frustrate me, it's also hard to test these kinds of things for other reasons but let me run down this first.

    I know the mission works on my pc, I know it works on someone elses pc with the same mods.
    The Dedi-server is running the same mods collection both of the other pc's are running, however for some reason the "role selection" appears blank on the dedicated server.

    This is driving me nuts and i can't seem to find a probable cause for this to happen and because i can't find the cause i cant find the fix. Please if anyone can help it would be SO muchly appreciated.


  2. So i'm trying to make a script where a Crate is empty but has the "AddAction" command to give certain loadouts. However i'm trying to do it the easy way by exporting the loadouts from VA and just have the player call the whole script to give them the new gear... In the init line of the crate i put

    this addaction ["Give Rifleman Loadout", "Rifleman.sqf"];

    Then for the rifleman.sqf script i pasted the exported arsenal loadout into there hoping it would work and added in a (_this =_this = ["give rifleman loadout", [_this] select 1];) to target the caller for the script to execute on. for reference

     

    _this = ["give rifleman loadout", [_this] select 1];
    
    removeAllWeapons this;
    removeAllItems this;
    removeAllAssignedItems this;
    removeUniform this;
    removeVest this;
    removeBackpack this;
    removeHeadgear this;
    removeGoggles this;
    
    comment "Add containers";
    this forceAddUniform "rhs_uniform_FROG01_wd";
    for "_i" from 1 to 10 do {this addItemToUniform "ACE_fieldDressing";};
    this addItemToUniform "ACE_EarPlugs";
    for "_i" from 1 to 10 do {this addItemToUniform "ACE_morphine";};
    this addItemToUniform "ACE_MapTools";
    this addItemToUniform "ACE_microDAGR";
    this addItemToUniform "ACE_Flashlight_XL50";
    this addItemToUniform "rhs_mag_m18_purple";
    this addVest "rhsusf_spc_teamleader";
    for "_i" from 1 to 6 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_No_Tracer";};
    for "_i" from 1 to 6 do {this addItemToVest "rhs_mag_M433_HEDP";};
    for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";};
    for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_m67";};
    this addItemToVest "rhs_mag_mk84";
    this addItemToVest "rhs_mag_mk3a2";
    for "_i" from 1 to 3 do {this addItemToVest "rhsusf_mag_17Rnd_9x19_FMJ";};
    this addBackpack "rhsusf_falconii";
    this addItemToBackpack "rhsusf_acc_nt4_black";
    this addItemToBackpack "rhsusf_acc_anpeq15_bk";
    this addItemToBackpack "acc_flashlight_pistol";
    this addItemToBackpack "rhsusf_ANPVS_15";
    this addItemToBackpack "rhsusf_acc_omega9k";
    for "_i" from 1 to 4 do {this addItemToBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag_No_Tracer";};
    for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_M585_white";};
    for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m715_Green";};
    for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m713_Red";};
    for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m714_White";};
    this addItemToBackpack "Laserbatteries";
    this addHeadgear "rhsusf_lwh_helmet_marpatwd";
    this addGoggles "rhsusf_oakley_goggles_blk";
    
    comment "Add weapons";
    this addWeapon "rhs_weap_mk18_m320";
    this addPrimaryWeaponItem "rhsusf_acc_ACOG_RMR";
    this addWeapon "rhsusf_weap_glock17g4";
    this addWeapon "Laserdesignator";
    
    comment "Add items";
    this linkItem "ItemMap";
    this linkItem "ItemCompass";
    this linkItem "ACE_Altimeter";
    this linkItem "ItemRadio";
    this linkItem "ItemGPS";

    Thats the whole Rifleman.sqf Script and it says that "this" is an undefined variable... Please note i'm not well versed in scripting, hell i'm starting out mostly, so i don't even know what i'm doing wrong.


  3. So first off, i'm completly new to scripting. never really done it so i don't understand it.

    Now, i have a helipad that i want to add a script to it's "init" line so that when a chopper lands on it, it can refuel, rearm and repair it, if needed with actions for all three. Please i'm looking all over and cant understand alot of what i'm reading so i needed some direct help :down:

×