demonhunter212 0 Posted July 25, 2006 Is there any possible way for a soldier to either: Get ammo or take a weapon from a Weapon/Ammo crate or truck by using a script... If you need further explanation heres the mission: 2 British Fireteams needing to secure a courtyard but its gonna be a 2 part mission and in the beginning of the 2nd mission you need to link up with your convoy of the following: A landrover and an ammo truck (Small convoy huh? ) and i want to get my team to reload without me having to tell them. So it's kinda like a Full Spectrum Warrior Ten Hammers Mission So could anyone possibly tell me both scripts for an ally or enemy to take a weapon/ammo without telling them to? Share this post Link to post Share on other sites
hicks88 0 Posted July 25, 2006 you could write a script to remove the units current weapons and then add the new weapons/ammo you want them to have. you could activate the script with a trigger or radio command Share this post Link to post Share on other sites
demonhunter212 0 Posted July 25, 2006 Quote[/b] ]you could write a script to remove the units current weapons and then add the new weapons/ammo you want them to have. you could activate the script with a trigger or radio command You mean a script as in they go to the truck and load up on ammo. or just do the (this addmagazine " ") Im a total scripting idiot and don't know how to create a script so could someone possibly write one for me Share this post Link to post Share on other sites
Metal Heart 0 Posted July 25, 2006 www.ofpec.com[/url])]TAKE WEAPONunitname action ["take weapon",vehiclename,0,0,"weaponname"] Unitname takes weapon of specified type from vehiclename, Vehiclename can be a vehicle, crate or body. Ammo for weapon is also taken. Unitname can take weaponname from vehiclename even if unitname is on the other side of the island. Share this post Link to post Share on other sites
demonhunter212 0 Posted July 25, 2006 Quote[/b] ]TAKE WEAPONunitname action ["take weapon",vehiclename,0,0,"weaponname"] Unitname takes weapon of specified type from vehiclename, Vehiclename can be a vehicle, crate or body. Ammo for weapon is also taken. Unitname can take weaponname from vehiclename even if unitname is on the other side of the island. Sweet Thanks but if i want them to take a magazine do i just replace the "Take Weapon" with "Take Magazine" Share this post Link to post Share on other sites
Metal Heart 0 Posted July 25, 2006 Yes. Also replace weaponname with magazinename. action list Share this post Link to post Share on other sites