Jump to content

thetrooper

Member
  • Content Count

    438
  • Joined

  • Last visited

  • Medals

Posts posted by thetrooper


  1. Should work for a triggers condition field:

    {_x distance civ1 < 5} count [ff1,ff2,ff3] > 0 AND {!alive murder1} AND {!alive en12}

    Should work inside execVMed .sqf:

    waitUntil {{_x distance civ1 < 5} count [ff1,ff2,ff3] > 0 AND {!alive murder1} AND {!alive en12}};

    Cheers

     

    hmmm, unit is still joining group when murder1 and en12 are still alive.

    They though only be joining if both of these are dead. Any ideas?


  2. Hi all, got a couple of questions around && and || .Basically who do I get this code to work?

     

    (ff1 distance civ1 < 5 || ff2 distance civ1 < 5 || ff3 distance civ1 < 5 || ff4 distance civ1 < 5) && !alive murder1 && !alive en12;
    

    I'm trying to say if these units are less then 5m away from a unit but also two other units have to be dead?

    Trying to add it into a condition field. Also how would I write it if in a SQF file?


  3. Hi all, I've got an issue with if a unit doesn't exist and I have a script running Arma3 throws up an error. How can I avoid this?

    Example.

    I got enemy units with variables from en1 - en34  (34 being total number)

    en15 has a has a probability set of 75% he also has en15 setUnitPos "MIDDLE" set in the init.sqf. en15 doesn't exist and get an error. I'm sure I never had that before. Is there any way to avoid it?


  4. Hi all, just had a brain wave. Is there a way to set a units waypoint to another unit?

    I'm looking at two options.

    1. permanant - unit contantly following another.
    2. waypoint refreshes - waypoint adjusts after a given time in seconds at current location of a unit
     

    First one i imagine is easy with experienced scripters. The second would be interesting for something like a fugative hunt.

    Any ideas?

×