#LUA SEXPs
$Operator: lua-mine-activate-altMethod
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 1
$Maximum Arguments: 1
$Return Type: Nothing
$Description: Activated per mine searching instead of a all weapon search pattern NOTE changing this to true alters will disable non-scripted
$Parameter:
    +Description: Old Or new mine pattern (false for old and true for new).
    +Type: boolean

$Operator: lua-mine-change-altMethod
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 1
$Maximum Arguments: 1
$Return Type: Nothing
$Description: Changes time between sweeps on new mines Does nothing unless altmethod is activated
$Parameter:
    +Description: Time between sweeps (alters existing mines also)
    +Type: number


$Operator: lua-mine-addOrMod-element
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 6
$Maximum Arguments: 7
$Return Type: Nothing
$Description: Create a generic mine. Can be altered with further SEXPs.
$Parameter:
    +Description:  Mine, weapon class to use as mine
    +Type: weaponclass
$Parameter:
    +Description:  Does the mine create weapon projectiles?
    +Type: boolean
$Parameter:
    +Description:  Weapon Class to make
    +Type: weaponclass
$Parameter:
    +Description:  How many projectiles will this weapon create?
    +Type: number
$Parameter:
    +Description: Distance from the center of target to detonate from?
    +Type: number
$Parameter:
    +Description: Does this mine target missiles on it's victim (true for yes, false for no)?
    +Type: boolean
$Parameter:
    +Description: Handles stealth mine detonation distance
    +Type: number

$Operator: lua-mine-destroy-element
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 1
$Maximum Arguments: 1
$Return Type: Nothing
$Description: Remove mine definitions from the script (i.e. weapon named foo is no longer a mine)
$Parameter:
    +Description:  Weapon to remove 
    +Type: weaponclass

$Operator: lua-mine-set-targetTypes
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 3
$Return Type: Nothing
$Description: Sets the types of ships for mines to fire upon
$Parameter:
    +Description:  Mine to alter
    +Type: weaponclass
$Parameter:
    +Description:  Create or Destroy the target requirements (false means that the mines will detonate on anything)
    +Type: boolean
$Repeat
$Parameter:
	+Description: Types of ships to add or remove. e.g. 
	+Type: string

$Operator: lua-mine-set-Directed
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 4
$Maximum Arguments: 4
$Return Type: Nothing
$Description: Makes the mine launch it's weapon class towards the enemy leading by a certain number of seconds
$Parameter:
    +Description:  Mine to alter
    +Type: weaponclass
$Parameter:
    +Description:  Time that projectile leads target (i.e. 1 means the projectile is launched one second in front of it's victim.)
    +Type: number
$Parameter:
	+Description: Delay between next projectile release (i.e. 0.1 means 1/10th of a second between one projectile and the next)
	+Type: number
$Parameter:
	+Description: Activate or Deactivate Directed Mine
	+Type: boolean

$Operator: lua-mine-set-DetFailRate
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 4
$Maximum Arguments: 4
$Return Type: Nothing
$Description: Makes the mine fail to detonate (tested every valid target every mine cycle)
$Parameter:
    +Description:  Mine to alter
    +Type: weaponclass
$Parameter:
    +Description:  Upperbound random number generator
    +Type: number
$Parameter:
	+Description: Upper Number needed to detonate
	+Type: number
$Parameter:
	+Description: Activate or Deactivate Mine Fail Detonation Rate.
	+Type: boolean

$Operator: lua-mine-set-active
$Category: Change
$Subcategory: Mine Tables
$Minimum Arguments: 0
$Maximum Arguments: 0
$Return Type: Nothing
$Description: Activates the mine sweep script every 0.25 seconds. To disable switch to new mine detection system

$Operator: lua-ship-as-mine
$Category: Change
$Subcategory: Mine Utilities
$Minimum Arguments: 3
$Maximum Arguments: 3
$Return Type: Nothing
$Description: Uses a ship as a mine (on death the ship drops one missile which should be a near 0 lifetime missile for the explosion.)
$Parameter:
    +Description: Ship to use as mine
    +Type: ship
$Parameter:
    +Description:  Weapon class to use as mine
    +Type: weaponclass
$Parameter:
    +Description:  Distance from hostile ships (NOTE the distance is measured center to center)
    +Type: number

$Operator: lua-ship-as-mineRestricted
$Category: Change
$Subcategory: Mine Utilities
$Minimum Arguments: 4
$Return Type: Nothing
$Description: Uses a ship as a mine for certain targets only (i.e. add 4 fighters of a wing). please ensure the ships are warped in before you set this to active or else it will do nothing for some or all of the ships
$Parameter:
    +Description: Ship to use as mine
    +Type: ship
$Parameter:
    +Description:  Weapon class to use as mine
    +Type: weaponclass
$Parameter:
    +Description:  Distance from hostile ships (NOTE the distance is measured center to center)
    +Type: number
$Repeat
$Parameter:
	+Description: Ship to use as target
	+Type: ship

$Operator: lua-weapon-no-lifetime
$Category: Change
$Subcategory: Mine Utilities
$Minimum Arguments: 2
$Maximum Arguments: 2
$Return Type: Nothing
$Description: adds infinite lifetime to a given weapon class USE WITH CAUTION
$Parameter:
    +Description:  Weapon class to give infinite lifetime
    +Type: weaponclass
$Parameter:
    +Description:  Do new weapons get infinite life?
    +Type: boolean

$Operator: lua-mine-create-minefield
$Category: Change
$Subcategory: Mine Utilities
$Minimum Arguments: 9
$Maximum Arguments: 9
$Return Type: Nothing
$Description: Creates a minefield between x1,y1,z1 and x2,y2,z2
$Parameter:
    +Description:  Mine to spawn in
    +Type: weaponclass
$Parameter:
    +Description:  number of mines to place in field (please use an integer). at or below zero will spawn no mines
    +Type: number
$Parameter:
    +Description:  x1
    +Type: number
$Parameter:
    +Description:  x2 to spawn in
    +Type: number
$Parameter:
    +Description:  y1
    +Type: number
$Parameter:
    +Description:  y2
    +Type: number
$Parameter:
    +Description:  z1
    +Type: number
$Parameter:
    +Description:  z2
    +Type: number
$Parameter:
    +Description:  Team mine spawns on
    +Type: team


#End