How to detect a magazine in a vest? - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8) +--- Thread: How to detect a magazine in a vest? (/showthread.php?tid=2742) |
How to detect a magazine in a vest? - vanha - 09-10-2014 Hi. Already chatted with Alwarren earlier about this but the method of an array check combined to new scripting commands gives me a headache. I was hoping to avoid using ye olde "area cleared" method in a task where a group will overtake an enemy depot and scavenge some demo/satchel charges. I foolishly was thinking of hasWeapon check but of course the satchel counts as magazine so then I was thinking of the new scripting possibilities but so far no prevail. Any ideas how to check if a unit has picked up a certain magazine inside the vest? (vestMagazines, magazinesDetailVest etc....) Re: How to detect a magazine in a vest? - Varanon - 09-10-2014 (09-10-2014, 03:01 PM)VanhA link Wrote:Any ideas how to check if a unit has picked up a certain magazine inside the vest? You should be able to check via Code: _magazines = getMagazineCargo (vestContainer _person); Re: How to detect a magazine in a vest? - vanha - 09-10-2014 That simple, eh? Thank you, I'll give it a go. |