lol, never script when you're too tired...
You're right about that typo... I'll fix that.
About this :
'waituntil = _time+(0.5+(10- _dens)) /#/' : error -: Type string, expected Number, Array
The params are :
1 - thislist
2- Type of mine (that's a string!)
3- Density - a number between 0 - 10
You probably have a string as 3th parameter instead of a number, because I don't see anything wrong with that code...oh, now I understand, in a previous version there was a fourth paramters, total number of mines that can be spawned in the minefield, but I deleted that param afterwards...
I'l fix that.
Actually, I got an updated version of this script with another fix.
- When you are standing still , the spawning of mines goes on and on. In the updated version, only mines will be spawned when you are moving and not in a vehicle.
Anyway, there's still another problem...
When men stay behind (20m), there's a possibility that mines will be spawned directly under your feet, without haveing the chance to see them first...No problem when it's only AI, but enoying when you are the player.
I need to find another way...
**edit**
Should be fixed now, see first post, same link.