Okay, here's the shiz. Near as I can figure, all commands that add/remove weapons/ammo are local, so you will need to run your ammo/weapon removal script on all clients.��� Why not add the crates to the map, remove the ammo using the
init field of each crate and then
setPos them into position when you need them?
If you really want to do it all dynamically you will have a challenge. What you must do is
publicVariable the name of each crate. Then you will be able to operate on them on a client level. You can not
PV an array. You may also consider using a counter variable for your crates that starts at a value of -99 on all clients, but then the server sets it to the number of crates and
PV's it once all the crates have been created and their variable names have also been
PV'd. You will have to use metavariables for the crate names and
call format. Funny that such a simple task is so complicated and my bet is that you are not laughing.���Â
edit: One last thought. You might try using camCreate to make the crates. Not sure if the crate will be able to hold anything.edit2:
camCreate createVehicleLocal the crates on each client. They will be dummy crates. Now on the server
createVehicle a weaponholder 1m underneath each crate.� This is assuming "weaponholder" is still a valid type in ArmA.