Jump to content
Sign in to follow this  
demonhunter212

Getting weapon/ammo from an Ammo Truck

Recommended Posts

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? biggrin_o.gif ) 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 biggrin_o.gifthumbs-up.gif

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

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
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 sad_o.gif

Share this post


Link to post
Share on other sites
www.ofpec.com[/url])]TAKE WEAPON

unitname 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
Quote[/b] ]TAKE WEAPON

unitname 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×