Home   Help Search Login Register  

Author Topic: East Engineer won't lay Mine????  (Read 566 times)

0 Members and 1 Guest are viewing this topic.

Offline nettrucker

  • Members
  • *
  • Too young to die-OFP Campaign by TOY & nettrucker
East Engineer won't lay Mine????
« 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

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:East Engineer won't lay Mine????
« Reply #1 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"]
« Last Edit: 25 Jan 2005, 15:35:37 by Platoon Patton »
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline nettrucker

  • Members
  • *
  • Too young to die-OFP Campaign by TOY & nettrucker
Re:East Engineer won't lay Mine????
« Reply #2 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.