Jump to content

Ghost

Member
  • Content Count

    668
  • Joined

  • Last visited

  • Medals

  • Medals

Posts posted by Ghost


  1. i am trying to create/delete triggers and in the onact line of the trigger which is ran on every client I want to update the current pubvar task

    _trg=createTrigger["EmptyDetector",_objmarker];
    _trg setTriggerArea[0,0,0,false];
    _trg setTriggerActivation["EAST","PRESENT",false];
    _trg setTriggerStatements["objtrigger", "nul = [""(ghst_actobj select 0)"",""succeeded""] call TASKMASTER_upd; forceEnd; ghst_randomobj = [] execvm ""dta\scripts\randomobj.sqf"";", "deleteVehicle _trg;"];

    problem is the method i used does not update the task. Ghst_actobj is an array that is pubvar updated with every new objective. So since your taskupdate requires the taskname to be a string. how do I go about doing so so that it would work in a scripted trigger as shown? I tried _actobj = str(ghst_actobj); and tried doing that again to put double quotes but nothing seems to work. So far besides my scripting issues your task system seems to work well.


  2. Makes sense. Now If i run the "TASKMASTER_add" command on a server only script will it update the clients already in the mission or just the jip clients?

    **update**

    Ran a test solo on dedi again and it seems that jip clients and current clients are not updated to tasks ran on server only scripts. If it was possible to do this it would make scripting missions a lot easier.


  3. I must be doing something wrong then because that is not happening.

    nul = [WEST,"obj1",["Eliminate the enemy threat","Enemy","Enemy"],"obj1"] call TASKMASTER_add;

    I have that in a script and the tasks are updated to those who are connected but if someone leaves then comes back or joins later that task is not updated to them.

    **UPDATE**

    Seems I may not have been patient enough. Still need to test with my friends by just myself on my dedi jip works, just takes a few moments.

×