Snypr 10 Posted June 18, 2011 Hi all Im currently making a mission but having trouble with some tasks and sidechat In My INIT file execVM "obj\tasks.sqf"; ------------------------- In My obj\tasks.sqf file officer addaction ["Patrol","obj\patrol.sqf"]; ----------------------------------------- In My obj\patrol.sqf officer removeaction 0; officer sideChat "Welcolme To FOB Revolver Lads"; sleep 7; officer sideChat "I Am Cpt.America And I Am The Person In charge Of This FOB"; Sleep 7; officer sideChat "Now All Thats Over Lets Get Alpha Squad Onto Your First Patrol"; Sleep 7; officer sideChat "Your Task Is To Patrol Sangin Town,Report Any Findings, But Be Warned There Are Civillians In Town So Remember The ROE"; sleep 7; tsk1 = player createSimpleTask["Patrol Sangin Town"]; tsk1 setSimpleTaskDescription["Our Officer Wants Alpha Team To Patrol Sangin Town","Patrol Sangin Town","Patrol Sangin Town"]; tsk1 setSimpleTaskDestination (getMarkerPos "tsk1"); player setCurrentTask tsk1; "tsk1" setMarkerType "Warning"; officer sideChat "Your task Has Been Set, Good Luck Alpha Team"; -------------------------------- help needed, the patrol action on the officer has to be activated by all players... i dont want this. i want the team leader only to get the action. But i need all members of the team to see the message,, Any help would be much appreciated SnYpR Share this post Link to post Share on other sites
SmartGun 10 Posted June 21, 2011 Hi, the patrol action on the officer has to be activated by all players... i dont want this try this addaction: _ActionID = officer addaction [ "Patrol", "obj\patrol.sqf", [], 1, false, true, "", "_this == (leader group player)" ]; now only the leader should see the addaction In obj\patrol.sqf put _officer = _this select 0; _caller = _this select 1; _id = _this select 2; _officer removeAction _id; chatOfficerVar = true; puplicvariable "chatOfficerVar"; dont forget to put chatOfficerVar = false; in your init.sqf now place a trigger. condition: chatOfficerVar onactivation: nul=[] execVM "obj\chatPatrol.sqf"; in obj\chatPatrol.sqf officer sideChat "Welcolme To FOB Revolver Lads"; sleep 7; officer sideChat "I Am Cpt.America And I Am The Person In charge Of This FOB"; Sleep 7; officer sideChat "Now All Thats Over Lets Get Alpha Squad Onto Your First Patrol"; Sleep 7; officer sideChat "Your Task Is To Patrol Sangin Town,Report Any Findings, But Be Warned There Are Civillians In Town So Remember The ROE"; sleep 7; tsk1 = player createSimpleTask["Patrol Sangin Town"]; tsk1 setSimpleTaskDescription["Our Officer Wants Alpha Team To Patrol Sangin Town","Patrol Sangin Town","Patrol Sangin Town"]; tsk1 setSimpleTaskDestination (getMarkerPos "tsk1"); player setCurrentTask tsk1; "tsk1" setMarkerType "Warning"; officer sideChat "Your task Has Been Set, Good Luck Alpha Team"; just an idea, NOT tested, just typed down fast hope it helps SmartGun Share this post Link to post Share on other sites