OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: freaky on 24 May 2003, 07:02:37

Title: ammo and guns in crates
Post by: freaky on 24 May 2003, 07:02:37
how do i place addons (guns) intoammo crates with magazines
give details.. which crate do i use the exact line and what to type in
thanks guys

also how do i remove all weapons from units at the start of a game
Title: Re:ammo and guns in crates
Post by: hurlothrumbo on 24 May 2003, 07:12:44
check the command reference for how to remove weapons from units and how to put stuff into crates.  To get the name of the weapon from an addon, you have 2 options -
a) read the readme for the addon, it should be in there
b) set a trigger to radio alpha, on activation
hint format ((weapons <unitname>) select 0)
then make your soldier with the addon with the name you chose.

Something like that, I might have the syntax wrong but I'm sure someone will correct me if it is.
Title: Re:ammo and guns in crates
Post by: macguba on 24 May 2003, 09:55:12
You can use any crate.

The remove weapon/ammo commands all start with "remove..." - look them up in the online command reference and use the ones you need.   The adding ones start with "add..."