OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nettrucker on 25 Jan 2005, 15:05:46

Title: East Engineer won't lay Mine????
Post by: nettrucker on 25 Jan 2005, 15:05:46
Hi.
Something just weird happend. I put some Code examples in the mission editor so I won't have to switch between OFP and blocknote and I can get every code I need inside the editor. The example I have works perfectly (Desert Island). I used the same code-- es1 fire ["put", "Mine"]-- in it's Activation field of the engineers WP in an Intro and this damn bugger won't lay the mine. Can't really understand why It doesn't work. By the way in the example I used a West engineer in the intro I used an East, and it doesn't work.  ::) Can somebody help me? Thanks
Title: Re:East Engineer won't lay Mine????
Post by: Platoon Patton on 25 Jan 2005, 15:34:37
Put
Code: [Select]
 Hint format ["%1",magazines this] in the units init.

U will see an array with all his mags.

The correct name for East mines is MineE..

So try
Code: [Select]
es1 fire ["put", "MineE"]
Title: Re:East Engineer won't lay Mine????
Post by: nettrucker on 25 Jan 2005, 18:21:42
Thanks Platoon Patton.
It works now. :) How stupid, should have taken a look at the comRef before posting.Sorry if I wasted your time mate. Normally the mines explodes only when a tank goes over it. Is there any chance to make them explode even when a truck goes over it, and if so, how I'm supposed to set it up. What code I have to use to make the mine explode. Thanks for any reply.