Jump to content
Vontickle

How to make a script trigger once task complete

Recommended Posts

Hey guys,

 

Hoping someone out there knows what i'm trying to achieve and knows the solution I'm looking for.

 

So I have a map i'm working on, and there is a "Warlord" task where you have to kill him, which all works fine, What i'm wondering is how can i get a script or trigger to work so when he is dead another script with activate?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

A trigger with the condition !alive WARLORD_NAME.

I guess you may already have the above, but anyways, in that trigger:

 

Condition:

!alive WARLORD_NAME;

 

On activation:

0 = [] execVM "yourscript.sqf";

 

In your mission root folder, you create the file "yourscript.sqf".

 

 

Share this post


Link to post
Share on other sites
1 minute ago, BlindNavigator said:

A trigger with the condition !alive WARLORD_NAME.

I guess you may already have the above, but anyways, in that trigger:

 

Condition:


!alive WARLORD_NAME;

 

On activation:


0 = [] execVM "yourscript.sqf";

 

In your mission root folder, you create the file "yourscript.sqf".

 

 

Thanks for the response, I'll give this a shot!

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

×