Jump to content
Sign in to follow this  
todayskiller

Trigger Objective Question

Recommended Posts

Hello everyone, I've searched and searched but I guess the words I type in don't match any search criteria.

Ok, so here's my question:

I'm using Trigger Objectives and not Init's or w/e...

But I was wondering, when I name a unit in a group (squad leader) soldier1 and put task1= soldier1 createsimpletask; blah blah blah it works for that soldier1 only, and not his group (I play as another soldier in his group but it doesn't show up)...I'm wondering how do I make it to where the whole group sees it when they enter the trigger?

Also, My Mission includes something like the operation Arrowhead Campaign, where you can play as the Pilot, Soldier, Tank Crew, etc...and they have different objectives.

How would I make it to where only that playable unit has that objective listed in triggers? I've tried task1= PlayableUnit createsimpletask; blah blah blah...and other things, one worked, but it showed an objective from the Pilots objective and also listed the tank crews objective...how would I get only the tank crew playable unit be listed for that actual unit, and the pilot has his own list...etc.

-TodaysKiller

Share this post


Link to post
Share on other sites

Hi,

on the first question:

{ task1 = _x createSimpleTask ["NewTask"]; } forEach units group soldier1;

could work, not tested -> forEach

on the different objectives:

i think TASKS are global. So you give one unit a task -> task1 = unit createsimpletask; blah blah blah

If you give an other task to an other unit but name it also task1 then this could be a problem.

Share this post


Link to post
Share on other sites

I'll test the above code now.

and for the different objectives...how would i get around it then? I wouldn't mind changing the code

---------- Post added at 05:23 PM ---------- Previous post was at 04:40 PM ----------

Nvm I found out how to make it work! :)...Thanks for your help SmartGun.

instead of putting

{ task1 = _x createSimpleTask ["NewTask"]; } forEach units group soldier1;

You Put

{ obj1 = _x createSimpleTask ["NewTask"]; } forEach units group soldier1;

---------- Post added at 05:29 PM ---------- Previous post was at 05:23 PM ----------

Edited by todayskiller

Share this post


Link to post
Share on other sites

Yeah, the tasks demo I made up used all triggers too, was too lazy for the whole file thing. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×