Jump to content
black_hawk_mw2_87

Complete Task When A Specific Kills Are Numbered

Recommended Posts

22 minutes ago, GEORGE FLOROS GR said:

 

Yes!

( we are in a good way ! scripting makes perfect :wave:)

  Hide contents

 

 

Merry Christmas in advance back to you! 😄 Silence! 😉 So, tommorow is a bombing... sorry... a testing day and I hope I will finally figure it out. Cause, strange or not, I have quite an idea about a new scenario and every single such script could bring in some extra diversity... 😄

  • Haha 1

Share this post


Link to post
Share on other sites
3 minutes ago, black_hawk_mw2_87 said:

So, tommorow is a bombing... sorry... a testing day

 

I'll be waiting for your news black_hawk_mw2_87 !

 

Ps : the video was just to stop thinking scripting for a while !

Get some rest , i'm going as well!

It's 03:00 am here in Greece !

have a "Silent" night !

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, GEORGE FLOROS GR said:

 

I'll be waiting for your news black_hawk_mw2_87 !

 

Ps : the video was just to stop thinking scripting for a while !

Get some rest , i'm going as well!

It's 03:00 am here in Greece !

have a "Silent" night !

Time to finally have some rest and go to bed, I guess. And, yes, it's 0300hrs a little to the North as well, in Bulgaria. 🙂 Good night to both of you! 🙂

  • Like 1

Share this post


Link to post
Share on other sites
8 hours ago, GEORGE FLOROS GR said:

 


waituntil{time>1};

[player,["task1","Mission"],["task1. Decription :","task1",""], getpos player,true,1,true,"kill",true] call BIS_fnc_taskCreate;
["task1","ASSIGNED",true] spawn BIS_fnc_taskSetState;

GF_Kills = 0;

addMissionEventHandler ["EntityKilled",
{
	params ["_killed", "_killer", "_instigator"];
	if(isNull _instigator)then{_instigator = UAVControl vehicle _killer select 0}; // UAV/UGV player operated road kill
	if(isNull _instigator)then{_instigator = _killer}; // player driven vehicle road kill
	
	if((typeOf _killed isequalto "C_man_polo_1_F") && !(GF_Kills isequalto 3))then{
		
		systemchat "C_man_polo_1_F";
		
		GF_Kills = GF_Kills + 1;
			if(GF_Kills isequalto 3)then{

			systemchat "SUCCEEDED";
			
			["task1","SUCCEEDED",true] spawn BIS_fnc_taskSetState;
			["task1"] call BIS_fnc_deleteTask;
			};
		};
	
}];

 

I have put this inside init.sqf and it creates the task. I have set a new description and I have changed the class name of the AI. But after killing the VR dude 3 or more times, nothing changed. 😄

  • Like 1

Share this post


Link to post
Share on other sites

Good morning, everyone! I hope you have slept well. You know what they say: the morning is wiser than the evening! I would like to ask for working examples. 🙂 I have tried everything above, but somehow it won't work for me... This is the testing mission I have been using so far:

https://steamcommunity.com/sharedfiles/filedetails/?id=1393410079&searchtext=vest+test

It would be easier for you as an example in order to create and complete a task using it. It also consists some other interesting scripts. 🙂

Cheers!

  • Like 1

Share this post


Link to post
Share on other sites

Hello, guys, did anyone try this simple scenario from my previous post? It's the one I want to use as a test mission and complete a task when I kill the VR dude X times.

  • Like 1

Share this post


Link to post
Share on other sites
On 8/25/2019 at 10:08 AM, black_hawk_mw2_87 said:

I have put this inside init.sqf and it creates the task. I have set a new description and I have changed the class name of the AI. But after killing the VR dude 3 or more times, nothing changed. 😄

 

did you used in your case :

"O_Soldier_VR_F" ?

 

here is the mission uploaded :

#Vest_testing.VR.zip

  • Like 1

Share this post


Link to post
Share on other sites
On 8/27/2019 at 1:06 AM, GEORGE FLOROS GR said:

 

did you used in your case :

"O_Soldier_VR_F" ?

 

here is the mission uploaded :

#Vest_testing.VR.zip

I did, my friend. I will test it when I am at home. 🙂

  • Like 1

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

×