Jump to content

L. Jessee

Member
  • Content Count

    12
  • Joined

  • Last visited

  • Medals

Posts posted by L. Jessee


  1. My goal here is to, from a laptop station execute a script to spawn enemy units into a shoot house. (the goal basically, is to have popup targets that shoot back, hence the disableAI "MOVE") So that after it is cleared the units can be spawned in again. I do have a repetitive cleanup script that should remove the dead units. I am using "old leaflets" for the markers for the spawn locations '_cqcspawns'. The script creates a group needed for the creatUnit. I am getting an error on line 12 for the getPosATL command. Error getposatl: Type Array, expected Object. I was hoping that someone more knowledgeable than me might give some insight as to making this script work. Below is the script. Thank you in advance.

     

    /* Prevents dedicated server running script */
    if (isDedicated) exitWith {};
    /* Private variables */
    private ["_cqcLiveTargets","_cqcSpawns","_azimuth"];
    /* createGroup [side, deleteWhenEmpty] needed for createUnit function later */
    private _cqcLiveTargets = createGroup east;
    /* Define spawn locations using variable names of leaflets as markers */
    private _cqcSpawns = [cqcspawn_001,cqcspawn_002,cqcspawn_003,cqcspawn_004,cqcspawn_005,cqcspawn_006,cqcspawn_007];
    /* type createUnit [position, group, init, skill, rank] function for spawning a unit */
     {
      "O_G_Soldier_lite_F" createUnit [
        getPosATL _cqcSpawns,
        _cqcLiveTargets,
        "call{_this disableAI "MOVE"; _azimuth = getDir _cqcspawns; _this setDir _azimuth;}",
        0.1,
        "PRIVATE"
    ];} forEach _cqcSpawns;

     


  2. I know this is an old topic. I already use the below teleport script:

     

    // this addAction ["Teleport -destinationName","teleport.sqf",[objectName]];

     

    // Get the destination.

    _dest = (_this select 3) select 0;

     

    // Get a random direction

    _dir = random 359;

     

    // Move the person a few meters away from the destination (in the direction of _dir)

    player SetPos [(getPos _dest select 0)-10*sin(_dir),(getPos _dest select 1)-10*cos(_dir)];

     

    But, I am trying to understand it better. In the above line for (// Get the destination) i have a question for those who have a better understanding of the script language.

    Say for example I am using an empty marker on the map. I make the variable name in the marker hq. Using the addAction script line above in a flagpole, i make the [objectName] hq.

    I know that this sends the argument hq to the teleport.sqf script.

    In the     _dest = (_this select 3) select 0;     line, I would like to understand better what is happening here. _this represents the passed argument of hq i take it. But it is the select functions that are confusing me.

    The (select 3) select 0  I understand that select is pulling in array elements. I just don't understand the 3 and then 0. What is actually happening here which then becomes _dest?

     

    Thanks for any clarity anyone can provide.


  3. Squad name: MARSOC 2nd Marine Raider Battalion
    Timezone/location : CST/CDT USA
    Gamemode preference (eg coop or pvp): CoOp
    Contact email: TS - ts3.marsoc.net
    Website address: marsoc.net
    Short description: Started in 2015, we strive to be a premier milsim unit. Providing training, structure, professionalism, campaign level missions and a level of camaraderie that makes for fun. We have and have had many active and prior service veterans. If milsim is for you, come check us out.
    Language: English


  4. Good day Jigsor... i downloaded your latest rev 1.48 of Insurgency, eager to try it out. For some reason it is not working. It loads on the dedicated server and says started. But nobody can get into it. You never reach the lobby. It just hangs.

    Our dedicated server has the latest Arma 3 v1.80. Have you heard of this? Do you have any suggestions? We were running v1.47, then when Arma updated to v1.80 the Insurgency v1.47 started doing this same problem. I was hopeing v1.48 would resolve this.

    To be sure it was not a server thing I checked, and Patrol Ops 4 and Liberation both run just fine.

    Thank you ahead of time for any suggestions that you might be able to provide.


  5. aviatormoser, I installed this script to use static list. With the default units you had in there of RHS and vanilla units. It was working.

    When I edited the recruitable_units_static.sqf with the Unsung 3.0E units that I wanted, the recruit UI had a blank list.

    Is there any issue with using Unsung and this script that you know of? Could you test? Any solution would be awesome.

    Thank you sir.

     

    bon_recruit_recruitableunits = [
    "uns_men_USMC_68_AT",
    "uns_men_USMC_68_MED",
    "uns_men_USMC_68_DEM",
    "uns_men_USMC_68_ENG",
    "uns_men_USMC_68_GL",
    "uns_men_USMC_68_TRI",
    "uns_men_USMC_68_HMG",
    "uns_men_USMC_68_AHMG",
    "uns_men_USMC_68_MRK",
    "uns_men_USMC_68_MRK2",
    "uns_men_USMC_68_MGAASG",
    "uns_men_USMC_68_MGSG",
    "uns_men_USMC_68_MGSG2",
    "uns_men_USMC_68_MGSG3",
    "uns_men_USMC_68_MTSG",
    "uns_men_USMC_68_SL",
    "uns_men_USMC_68_RF1",
    "uns_men_USMC_68_RF2",
    "uns_men_USMC_68_RF3",
    "uns_men_USMC_68_RF4",
    "uns_men_USMC_68_RF5",
    "uns_men_USMC_68_RF6",
    "uns_men_USMC_68_RTO",
    "uns_men_USMC_68_SAP",
    "uns_men_USMC_68_SCT",
    ];


  6. I am using build 1.6.92, Creating a new profile, under Addon Options, i click the blue plus sign to Add a new addon search directory and the program just closes. So I cannot add an alternate search folder outside of the Arma 3 folder. The program has updated twice since i created a new profile, so I assume that this is new with the last update. Any help? Has anyone else seen this or have this same problem?


  7. Hmm.. I was trying to make a Stick Fence pen for some sheep. But the sheep would walk right through the fence and wander away. I found that when I checked the Simple Object box in the Stick Fence attributes they could no longer walk through the fence. I am wondering now how do I accomplish this now that the check box option is not there.


  8. I just noticed with the 1.70 update that in the Attributes window the Simple Object check box is no longer there. That was under Object: Special States. I used this, for example: the Stick Fence so that I could make a pen for sheep that could not pass through. Was this removed? Is there another way to do this I am unaware of?

×