OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 25 Apr 2004, 15:25:12

Title: Unit put Satchel.
Post by: Olphy on 25 Apr 2004, 15:25:12
Hi guys.

This is quite a simple script I know but for some reason I can't get it to work.

I am trying to get a unit to place a Satchel Charge, so I write:

unitname fire[''Put'', ''Pipebomb'']

But for some reason I keep getting an invalid number in expression message at the top of my screen. What am I doing wrong?

Cheers.

Olphy...
Title: Re:Unit put Satchel.
Post by: Olphy on 25 Apr 2004, 15:51:06
Sorry boys its ok I seemed to have cracked it. Sorry for wasting your time... :P
Title: Re:Unit put Satchel.
Post by: Planck on 25 Apr 2004, 15:51:38
In your code you have used 2 single quotes (') instead of double quotes (").

Use Shift-2 to get the double quotes.......at least it is on my keyboard.


Planck