Funkman 10 Posted July 5, 2010 Hello, I am making a movie. I have one part where I want one civilian, "I1" to fire on another "MrP". I am using a script which looked like this: I1 doTarget MrP; sleep 2; I1 fire "M16A4"; Sleep 1; I1 fire "M16A4"; Sleep 1; He targets the man, but wont fire. I tried with another civilain target and the same thing happened. So I tried replacing the "fire" command with I1 doFire MrP Still, he just watches them and wont open fire. Any suggestions? Share this post Link to post Share on other sites
f2k sel 164 Posted July 5, 2010 group one civ to opfor with probability of presence 0 and group the other to blufor also with 0 probability of presence Share this post Link to post Share on other sites
Funkman 10 Posted July 5, 2010 Hmm, can you please explain? Do I have to create an OPFOR and BLUFOR character in order to group the civilains to it? Share this post Link to post Share on other sites
f2k sel 164 Posted July 5, 2010 Place a blufor unit and adjust the probability of presence to 0, then place your civ and use the group menu to drag a line from civ to blufor. do the same for the other civ but use opfor. the blufor and opfor units won't show but the civs have now taken sides. Share this post Link to post Share on other sites
Jelliz 10 Posted July 5, 2010 Try this: I1 fire ["M16Muzzle","M16A4"] Share this post Link to post Share on other sites
Funkman 10 Posted July 5, 2010 Sweet, Jelliz, I will try yours first, then if no joy I will try Sel's suggestion. ---------- Post added at 02:33 AM ---------- Previous post was at 02:23 AM ---------- Arrgh, none of them worked! Sel, I tried it, I gave them both guns facing each other in the street and they just stand there. They should shoot each other by default right? Share this post Link to post Share on other sites
f2k sel 164 Posted July 5, 2010 (edited) They should do, I have to go so I uploaded a test. I couldn't get the fire command to work either and when it has worked in the past they just fire a single shot into the air. http://www.sendspace.com/file/abkthb'>http://www.sendspace.com/file/abkthb Edited July 5, 2010 by F2k Sel Share this post Link to post Share on other sites
mpatton 10 Posted July 5, 2010 Maybe a more clear description would help? The blufor/opfor thing should have worked; I use it all the time... Take a USMC rifleman, set his rank to the highest one available, and set his probability of presence to 0. Then take the civi, set his rank any level lower than the USMC rifleman, and group him to the rifleman. Do the same thing for the other civi, except use a Russian rifleman. The two should target. Share this post Link to post Share on other sites
Funkman 10 Posted July 5, 2010 Ah! Rank - I didnt set the rank, maybe that is why? I will try fix it and see if it works. Thanks for the help. ---------- Post added at 03:48 AM ---------- Previous post was at 03:45 AM ---------- Hmm, no. No change. They both act as though they are enemies. One of them goes prone, then after a while the both give the "all clear " hand signal and stand back up? Weird. ---------- Post added at 03:52 AM ---------- Previous post was at 03:48 AM ---------- OMG! Sel, I just ran your test and it worked fine. I noticed you used the "addMagazine" Command. I didnt do that, i just used addWeapon. Do I need to give them magazines as well? Maybe that is why it's not working? ---------- Post added at 03:54 AM ---------- Previous post was at 03:52 AM ---------- YEP! Solved! I gave them no ammo LOL! I thought the weapon came with ammo. Wow, such a simple thing....I can probably get the "fire" command to work after all now.. Thanks for the help everyone. Share this post Link to post Share on other sites
f2k sel 164 Posted July 5, 2010 No problem, You don't need to give them rank as long as you group the civ to the soldier, if you group soldier to civ it won't work. Share this post Link to post Share on other sites
rübe 127 Posted July 5, 2010 You could also set the target civilian to renegade by giving him a negative score (addScore). Though, anybody with a weapon would shoot him then. Share this post Link to post Share on other sites
Funkman 10 Posted July 7, 2010 Thanks again for your help guys, you can see the result here: http://forums.bistudio.com/showthread.php?t=75962&page=136 Share this post Link to post Share on other sites