Jump to content
Sign in to follow this  
Echo5Hotel

Prisoner frustration!

Recommended Posts

So I have been working on a mission where the multiplayer team is assaulting a safe house trying to capture a person of interest. This person has two bodyguards. I have a trigger set uo that if the bodyguards are killed the POI will surrender. This is the trigger info I have to set it up:

Condition: ! (alive bg1) and ! (alive bg2);

On Act: removeallweapons this; target playmove "amovpercmstpsnonwnondnon_amovpercmstpssurwnondnon"; target allowfleeing 0; target setcaptive true; target disableAI "ANIM"; target disableAI "MOVE";

In the on act line of a trigger that I have set up to trigger when the player group gets within a few meters of the POI I have:

On Act: target setcaptive false; target join group player; target enableAI "ANIM"; target enableAI "MOVE";

All I am trying to make happen is when the bodyguards are killed the POI surrenders, placing his hands on his head. Then, when one of the players approaches him he will lower his hands and join the player group. The problem occurs when approaching the POI, he does not lower his hands or join the player group though I know the trigger is firing from some text I placed in the trigger as well.

Anyone have any ideas on what I might be doing wrong or a better way of accomplishing it?

Share this post


Link to post
Share on other sites

Okay just to make sure what your triggers do:

When the player group gets near the POI, the target joins your group and AI related settings are configured (AI animations and movement enabled).

But after the bodyguards are killed, you actually deactivate Animations and Movement for AI's.

I didn't use disableAI-commands yet but if I venture a guess, I'd say the target doesn't do any animations because of that.

Also "removeAllWeapons this" will do nothing because there is no "this" in the context of the trigger (I think another variable like this_list is holding the players inside the trigger or somethin).

Share this post


Link to post
Share on other sites

Actually it is the opposite. The bodyguards will be killed before the players get near the POI so those items go into effect first, keeping the POI in a surrender position and not running away. I found that my main problem was the join command needed [target] instead of just target to work correctly. I still don't understand all syntax yet but I am working on it. Good catch on the removeallweapons mistake. I was working with init lines for a while and that is how that got in there. Thanks for the assistance though. ;-)

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  

×