Results 1 to 9 of 9

Thread: Multiple Trigger Completion

  1. #1
    Master Sergeant Militantsausage's Avatar
    Join Date
    May 3 2010
    Location
    Gold Coast, Australia
    Posts
    713

    Multiple Trigger Completion

    I'm surprised I could not find anything on this topic, anyway, how do you detect if two or more triggers have been activated? And then when they are activated, what do you get them to complete a task?

    eg. I have 2 AA sites to destroy, I need to detect when both sites have been destroyed so I can complete the task and add the next part of the mission.

  2. #2
    Trigger 1:
    cond: damage aasite1 > 0.8
    name: trgAasite1

    Trigger 2:
    cond: damage aasite2 > 0.8
    name: trgAasite2

    Trigger 3:
    cond: triggeractivated trgAasite1 && triggeractivated trgAasite2
    onact: your task update etc


    Or with variables:

    Trigger 1:
    cond: damage aasite1 > 0.8
    onact: objAasite1 = true

    Trigger 2:
    cond: damage aasite2 > 0.8
    onact: objAasite2 = true

    Trigger 3:
    cond: objAasite1 && objAasite2
    onact: your task update etc


    Or if you don't need to know when separate targets are down:

    Trigger 1:
    cond: damage aasite1 > 0.8 && damage aasite2 > 0.8
    onact: your task update etc


    You can obviously use !alive check instead of damage, or group the trigger to the object.

  3. #3
    Master Sergeant Militantsausage's Avatar
    Join Date
    May 3 2010
    Location
    Gold Coast, Australia
    Posts
    713
    Author of the Thread
    Thanks for your help, seems pretty simple.

  4. #4
    maybe you can help me with this!

    i have an activation trigger(6) set to start a convoy! triggered by blufor, but it must happen after trigger5 (the previous task!

    so people have to drive there and then walk to the vehicle to start the convoy!

    will activated by blufor and in cond: triggeractivated trigger5 work or do i also have to add && and then both squads group name?



    triggeractivated trigger# && ( plz insert here, what command: group delta1 ????)
    Last edited by BelgarionNL; Oct 21 2010 at 14:45.

  5. #5
    activation: blufor present
    cond: this && triggeractivated trigger5

  6. #6
    For a rather interesting approach to trigger usage and intermechanics between them, you should check out that vanilla "protect the engineers" mission from Arma1. Not sure about its full name, but as I recall I learned a few things the day I checked it out.
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  7. #7
    I don't have Arma1, but is that a method of using a game logic with multiple AND waypoints, and the triggers synch'd to those waypoints (one per trigger)?

  8. #8
    I don't either, or rather, I'm not going to reinstall to find out But no, the triggers job was to "build" some sand barriers while the engineers worked on them. The barriers would rise from the ground gradually. It's not really related to what's going on here, more of a fun fact on what can be achieved with very little code and triggers alone.

  9. #9
    Master Sergeant Militantsausage's Avatar
    Join Date
    May 3 2010
    Location
    Gold Coast, Australia
    Posts
    713
    Author of the Thread
    sounds nice, personally I have learn't most of my stuff just by searching the scripting commands page in the biki and just trial and error ingame.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •