wongkeanwah 0 Posted May 14, 2006 Hello, It has been a long break from OFP and im back, so i wanna ask something. How do you use a script to add a weapon to someone(eg Civilian) and change sides?(eg Civilian to West). Help is appreciated! thanks! Share this post Link to post Share on other sites
Guest Posted May 14, 2006 changeSides If you do a simple search of change sides, youlll find more similiar posts. The weapon thing I havent yet delved into in scripting, but a few searches may bring up your answers Share this post Link to post Share on other sites
wongkeanwah 0 Posted May 14, 2006 Thank you special Ed, ill try it out. Share this post Link to post Share on other sites
Guest Posted May 14, 2006 Basically the posts in that thread show 2 ways, one thru the editor of setting units to groups of other sides and other of changing actual unit configs in script, just easier to show ya the link here than re-typing it. Sorry if the link is not super clear, a few misleading posts in there, but basically you either make a unit and group him to another unit of opposite side that does NOT have a lower rank set, or go thru the mission file and change properties (shown in link) to make particular unit whatever side. Hope I have been a help gl Share this post Link to post Share on other sites
wongkeanwah 0 Posted May 14, 2006 Hey, of course you have been a help. Now, the weapons.. i know how to add a weapon, but the mags dont show up. Share this post Link to post Share on other sites
Artak 0 Posted May 14, 2006 You need to add mags before the weapon. unit addmagazine "m16"; unit addweapon "m16" in that order. The easiest way to have a west soldier east for example, is to group the west soldier to a east soldier with higher rank and put deletevehicle this in the east soldiers init field. That way the west soldier is now east and by himself when the game starts. Same principle for civilians ect. Play around. Share this post Link to post Share on other sites
wongkeanwah 0 Posted May 14, 2006 I thought the unit was meant to be this? Share this post Link to post Share on other sites
NeMeSiS 11 Posted May 14, 2006 I thought the unit was meant to be this? Yes, but This only works in the INIT line of the unit, if you use it in a script then you should name the unit and use his unitname instead of This Share this post Link to post Share on other sites
wongkeanwah 0 Posted May 16, 2006 Ok, another question.. what is the weapon code for the default XM-177E2? Share this post Link to post Share on other sites
wongkeanwah 0 Posted May 16, 2006 Ah, sry found it in one of the staff threads Share this post Link to post Share on other sites