Announcement

Collapse
No announcement yet.

Check me out

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Check me out

    Code:
    if (!isserver) exitwith {};
    
    _manlead = _this select 0;
    _manfollow = _this select 1;
    
    {[_x] join _manlead} foreach units group _manfollow;
    
    if (true) exitwith {};
    Does that look right to you guys?

    She's stubborn and not willing to cooperate.

    TGU Instructor TG Pathfinder

    Former TGU Dean Former ARMA Admin Former Irregulars Officer

    "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

  • #2
    Re: Check me out

    I simplified it a bit. Untested and probably with excessive amount of (), just to be sure.
    Code:
    if (isServer) then
    {
    	(units (_this select 1)) join (_this select 0);
    };

    Comment


    • #3
      Re: Check me out

      You're awesome Fin, I'll test it and post results.

      TGU Instructor TG Pathfinder

      Former TGU Dean Former ARMA Admin Former Irregulars Officer

      "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

      Comment


      • #4
        Re: Check me out

        No luck.

        This is what I have set up so far:

        Trigger
        Activation: BLUFOR
        Once
        Detected by BLUFOR

        Condition: this && ((vehicle player) in thisList) and ((getPos (vehicle player) select 2) < 2);

        On Act: null = this execVM "join.sqf";

        With the above code.

        What gives?

        TGU Instructor TG Pathfinder

        Former TGU Dean Former ARMA Admin Former Irregulars Officer

        "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

        Comment


        • #5
          Re: Check me out

          You're passing the trigger to the script(this) and the condition for the trigger requires a player to be present, even though the script only does anything on a server. Player is undefined on a dedicated server. I'd also use other dummy variable names than null, or in this case none at all.

          Comment


          • #6
            Re: Check me out

            Well, the premise is quite transparent as you can guess by now. It's to have the AI soldier join the player (or player group) when the player is within the trigger at lower than 2 (meters) from ground. So the helo or other flying vehicles will not activate it.

            So if I edit the "null = this execVM "join.sqf"; to "test = execVM "join.sqf" would that work?
            (I haven't tested it yet on my end also for this)

            The script is okay right? or the one you've streamlined rather.

            TGU Instructor TG Pathfinder

            Former TGU Dean Former ARMA Admin Former Irregulars Officer

            "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

            Comment

            Connect

            Collapse

            TeamSpeak 3 Server

            Collapse

            Advertisement

            Collapse

            Twitter Feed

            Collapse

            Working...
            X