Printable Version of Topic

Click here to view this topic in its original format

Armed Assault Info Forums _ Mission Editing & Scripting _ Grenade bug error

Posted by: Newmissionmaker Sep 15 2011, 23:04

Hi all, I'm having a problem with equipping grenades to a soldier in the mission editor. I've searched all over the internet and could not find any info on this. Whenever I try to equip a unit with a grenade I get either "Scope=Private" or "Error! no entry in config" How do I give the grenade class weapons to units in the mission editor?

Also is there a way to insert a building into a mission? I'm not talking about using the mission editor update to insert a building as an object. If I do this the AI doesn't recognize it as a building.

Posted by: D@V£ Sep 21 2011, 12:27

Are you sure you're adding the right grenade class? The scope=private error suggests you're trying to add grenade base class, rather than one of the actual grenades. The M67 is "HandGrenade_West" and the Russian one who's name eludes me right now is "HandGrenade_East".

So, if you wanted to give a unit a grenade, use:

CODE
This addMagazine "HandGrenade_West"

(Don't forget, Hand Grenades, Smoke Shells etc. are treated as magazines by the engine, not weapons!)

Posted by: Newmissionmaker Sep 22 2011, 02:55

Thank You, that is what I was doing wrong. Treating it as a weapon instead of a magazine.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)