Jump to content

Recommended Posts

I wonder if any of you awesome mission makers have a solution for the following:

 

I have a unit that has surrendered. If you kill him the mission ends. I have surrounded him here and there with people you should kill. This works correctly, if he dies you lose.

However, If you don't kill him and you clear the area, I want him to run away and be free. I have him run off to a marker way in the distance. This also works fine.

 

Now I dont like the idea of him standing out in the desert on a marker, maybe to been seen later on some follow up mission, doing his best Pablo Escobar impression staring off into the distance on his own. So I tried to delete him when he is out of sight. But it turns out if I delete him, then he is dead - !alive and you lose the mission.

 

Any ideas on how I can have him deleted without him being !alive, or some other clever workaround to satisfy both of my conditions. I did think about ending the mission if the player 'score' receives a negative value.(which would come as a result of killing the guy) But the more I looked at that the more it seemed like a bad idea. I suppose I'd have to have a wait until running permanently, checking the current rating against the previous rating and trigger on <. Seems mad.

 

Any ideas

Share this post


Link to post
Share on other sites

The only things I can think would be to apply some commands upon the guy once he reaches that escape point, like teleporting him somewhere distant and using "_this setCaptive true;" and "_this allowDamage false;", so you would force the NPC to not being a target for nobody, until you get him back to action on next objectives.

  • Like 1

Share this post


Link to post
Share on other sites

Yeah I think thats what I'll have to do. I like to tidy up as I go if I can and delete things no longer in use.

Unless theres a better option I think I'm going to do this,

b1 disableAI "ALL";
b1 setPos (getPos marker2);
hideObject b1;

 

  • 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

×