Jump to content
Sign in to follow this  
Geth

HVT death end condition problem and setFace problem

Recommended Posts

In my mission TVT30 Regime Change, the HVT death failed to trigger the end condition:

 

      if (!(alive PRES)) exitWith {
 
     "Al-Nusra victory! President Assad has been executed! Allahu Akbar!" call FNC_EndMission;
 
      };
 
However, it works perfectly in offline testing. 

 

 

Also, setFace in the init of units works in offline testing, but not online, such as:

 

      this setFace "PersianHead_A3_02";

 

Is there a simple way to fix that? 

 

Thanks in advance.

Share this post


Link to post

Comparing it to one of my end conditions that works:

 

if (!alive bmp1 && !alive bmp2 && !alive bmp3 && !alive bmp4 && !alive bmp5) exitWith {
 
"MUF VICTORY<br />All target vehicles have been destroyed" call FNC_EndMission;
 
};

 

AFAIK it should be working for you.

 

Failing that, an alternative method I sometimes use is:

 

if (!alive crate) then {
 
["DC","BIS_fnc_endMission"] call BIS_fnc_MP;
};
 
 
where the end screen "DC" is defined in the description.ext as:
 
 
class CfgDebriefing
{  
        class DC
        {
                title = "Mission Completed";
                subtitle = "Blufor destroyed the enemies supplies.";
                description = "";
                pictureBackground = "";
                picture = "";
                pictureColor[] = {1.0,1.0,1.0,1};
        };
 
Not quite the same as your current end condition, but just as an alternative, as it definitely works.

Share this post


Link to post

The problem you are probably having with the end conditions is that the HVT is re-spawning in spectator before the end script evaluates.  

Use the Olsen framework function (unit call FNC_Alive) instead. This function will return false even when the character has already re-spawned in the spec pen.

 

This doesn't need to be done with vehicles because they don't respawn in spec

 

I belive the correct syntax would be   if (!(PRES call FNC_Alive)) exitWith { ... }

Edited by Briland

Share this post


Link to post

The problem you are probably having with the end conditions is that the HVT is re-spawning in spectator before the end script evaluates.  

Use the Olsen framework function (unit call FNC_Alive) instead. This function will return false even when the character has already re-spawned in the spec pen.

 

This doesn't need to be done with vehicles because they don't respawn in spec

 

I belive the correct syntax would be   if (!(PRES call FNC_Alive)) exitWith { ... }

 

I implemented it for next update, I bet that will fix it, thanks. 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...