Jump to content

namenick

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About namenick

  • Rank
    Rookie
  1. namenick

    Random tasks\objectives

    Think I found the solution. https://forums.bistudio.com/topic/167033-dac-v31-dynamic-ai-creator-released/?p=2943643 I'll test right when I get home and post results if you all want. thanks for the help jshock and Iarrow.
  2. namenick

    Random tasks\objectives

    yeah I tried that but I still need the code below somewhere to complete the waitUntil _clearTask function. _trigger setTriggerStatements ["this",format ["[%1,'Succeeded'] call BIS_fnc_taskSetState",_clearTask],""]; I was hoping by just putting down a second trigger just like the one you're using that it would actually detect the spawned AI, but it doesn't seem to work that way for this implementation... :/ I'm looking around now to see if I can add a second trigger logic that will detect from trg1's the presents of EAST so that when they are all dead I can actually fire the statement above. hope this is making sense, but if not, when I get home from work today I'll post up some of the code. Thanks again.
  3. namenick

    Random tasks\objectives

    Awesome!! Thanks guys. This one worked perfectly. _trg1 setTriggerStatements ["true","fun = [thisTrigger call BIS_fnc_objectVar,[1,0,0],[3,3,20,6],[],[],[],[0,0,0,0,1]] spawn DAC_Zone", ""]; Now I just need to figure out how to detect when EAST not present in the trigger area to complete the clear area task. Adding another trigger over the one that was just created doesn't seem to be working when I clear out the DAC spawned AI. Any ideas?
  4. namenick

    Random tasks\objectives

    I already tried that and I think whats happening is, when you call in _trg1 for the %1 holder you're just calling in the trigger object. For the function to work it needs the name of the trigger in string format, which in the editor is super easy to do by adding a value to the variable name field. I just can't find anything on how to set that value in script other then what bis wiki states on the createTrigger function. Name is a valid param, but no examples as to how to implement it.
  5. namenick

    Random tasks\objectives

    hey guys, I'm trying to work this out and Im not having much luck.. not even sure if its possible. //example objective0Create.sqf //call line being: [(getMarkerPos _rndLoc)] execVM "objective0Create.sqf"; _centerPos = (_this select 0); //This is where any DAC stuff would go, assuming it can use the "_centerPos" to spawn stuff around DAC_Basic_Value = 0; execVM "DAC\DAC_Config_Creator.sqf"; _trg1 = createTrigger ["EmptyDetector",_centerPos]; _trg1 setTriggerArea [50, 50, 0, false]; _trg1 setTriggerActivation ["LOGIC", "PRESENT", true]; _trg1 setTriggerStatements ["true","fun = ['z1',[1,0,0],[3,3,20,6],[],[],[],[0,0,0,0,1]] spawn DAC_Zone", ""]; _clearTask =[......... Basically where you see 'z1' on triggerStatements is where I believe I'm having issues. The DAC_Zone function is trying to reference the triggers "variable name" of the trigger that was just created. Can I even set a string type name to triggers to later access them by name? Normally this would be done in the editor and you'd directly assign a var name to the trigger you place down, but I want the random functionality. I'm at a total lose with this one... I know this is a bit off topic, but this DAC implementation is spawning off the random tasks scripts you'll have been working on. Any help will be greatly appreciated. thanks
×