Jump to content
Sign in to follow this  
bennettonn

Complete a task only if I'm wearing a specific outfit

Recommended Posts

for example: I have a task that says to pick up the clothes of a body of a civilian, I want what's task is complete only when the player pick up the outfit of this civil. from now on I'm already grateful help from anyone.

Share this post


Link to post
Share on other sites

Try a "Take" EH assigned to the player.

Something like...(not 100% on whether it will work as intended)

player addEventHandler ["Take",
{
_civUni = uniform (_this select 1);
if ((_this select 2) isEqualTo (_civUni)) then
{
	//task completed code
};
}];

Edited by JShock

Share this post


Link to post
Share on other sites

excuse not have said before but I am very novice in this business to create missions and I have no idea how to use it, so if possible insinar of how to use it I am grateful

---------- Post added at 00:05 ---------- Previous post was at 00:01 ----------

Try a "Take" EH assigned to the player.

Something like...(not 100% on whether it will work as intended)

player addEventHandler ["Take",
{
_civUni = uniform (_this select 1);
if ((_this select 2) isEqualTo (_civUni)) then
{
	//task completed code
};
}];

excuse not have said before but I am very novice in this business to create missions in 3 gun and I have no idea how to use it, so if possible insinar of how to use it I am grateful

Share this post


Link to post
Share on other sites

Copy and paste into your player unit's init field in the editor.

Share this post


Link to post
Share on other sites

for example: I have a task that says to pick up the clothes of a body of a civilian, I want what's task is complete only when the player pick up the outfit of this civil, if possible explain how to use anything you send because I do not know much editing in ARMA 3. from now on I'm already grateful help from all.

Share this post


Link to post
Share on other sites

If you're trying to do this from editor then you need to put down a game logic and put this in the initialization field

0=[] spawn {waitUntil {uniform player == "CLOTHINGTYPE"}; myTask setTaskState "SUCCEEDED";};

Share this post


Link to post
Share on other sites

I want to apologize for having made two post on the same subject was to post on another site I'm sorry

Share this post


Link to post
Share on other sites
I want to apologize for having made two post on the same subject was to post on another site I'm sorry

No worries. Threads have been merged.

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  

×