Jump to content

Setting hostage behaviour to shoot enemies


donavlad

Recommended Posts

Hello forum,

Me and a friend are new in this area and we were scrolling trough the forum looking for our anwser but we couldn't seem to find it. We were wondering if:

* it is possible to make a hostage shoot enemy's after they have been rescued?

* is it possible to set the hostage to a plan and to set it to follow after the plan (trigger) is executed?

We gave the hostage an ak allready, after he is rescued, and he can follow us, BUT we want him to help us defend a zone first and then follow us, while he is able to kill enemy's.

Response would be much appriciated.

Regards, Dona & Vlad

Link to comment
Share on other sites

Hey, welcome to the forums. Glad you're getting into mission modding, always nice seeing someone new interested in it.

There's nothing special you need to do to make the hostage shoot at enemies. As long as he has a weapon, once he's rescued he will shoot at enemies. As for following a plan then going with you, you might try this:

First, don't set him to hostage behavior at startup. Instead, set him to invisible and turn off his AI (PlatoonAIOff for his platoon). Now, set up a trigger to where when a member of player platoon is within 5m of hostage actor, turn invisibility off and turn his AI back on. (PlatoonAIOn). Then, use an ExecutePlanTeam response directed at his team and the trigger plan with a path to the defend area. Next, when you want him to start following you again (like once all enemies are dead), have a block triggered by the death of all actors in the enemy platoon/company, and in that block have it AbortPlanTeam of the hostage and set him to hostage mode. Sorry if that was confusing, if it was too messy I can script it and post it up in a more understandable format. :yes:

Link to comment
Share on other sites

Thank you so much Riley!

This is exactly what I wanted to script. No need to fully work it out, this makes sense.

Once the mission is completed, Ill post it up here, somewhere, for you guys to give it a shot. This will be a rough version.

What I noticed by the way is enemy's shooting at walls to enemy's on the other side. They can see eachother, but can't shoot eachother. so the look kinda stupid shooting up walls all the time. Any chance of you guys to have a solution for this problem? Or is it a poorly made map problem?

Regards!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...