donavlad Posted August 17, 2012 Share Posted August 17, 2012 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 Quote Link to comment Share on other sites More sharing options...
RileyFletcher_01 Posted August 17, 2012 Share Posted August 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
donavlad Posted August 18, 2012 Author Share Posted August 18, 2012 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! Quote Link to comment Share on other sites More sharing options...
RileyFletcher_01 Posted August 18, 2012 Share Posted August 18, 2012 Hmm, sometimes actors, especially those who are set to suppress, will shoot at walls in an attempt to suppress or kill a target. Sometimes even your own teammates will do this if set to Suppress, it is to keep them pinned down but yes sometimes it looks stupid and has no effect. Quote Link to comment Share on other sites More sharing options...
donavlad Posted August 18, 2012 Author Share Posted August 18, 2012 Thnx Riley, Now you wrote it, I have to say, it makes sense and I could have known it. Thanks, Ill keep you posted on progress and problems! Quote Link to comment Share on other sites More sharing options...
RileyFletcher_01 Posted August 18, 2012 Share Posted August 18, 2012 Sounds good. I'm interested in checking out this mission once it's done. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.