Jump to content

Nscmichael

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Nscmichael

  1. I found out how to make a tractor beam.

     

    package.path = package.path .. ";data/scripts/lib/?.lua"
    require ("turretgenerator")
    
    
    function execute(sender, commandName, ...)
    
    --(seed,weaponType,dps,techLevel,rarity,material)
    local TurretTemplate T = GenerateTurretTemplate(random():createSeed(), WeaponType.ForceGun, 0, 100, Rarity(5), Material(MaterialType.Avorion))
    
    --table containing the weapons that make up the turret
    local weapons = {T:getWeapons()}
    
    --clear old weapons from turret
    T:clearWeapons()
    
    --modify weapons
    for _,weapon in pairs(weapons) do
    	weapon.recoil = weapon.recoil*0.01
    	weapon.blength = weapon.blength*5.0
    	weapon.reach = 500
    	weapon.otherForce = -1500000
    	weapon.selfForce = 0
    	--add mofidied weapons to turret
    	T:addWeapon(weapon)
    end
    
    
    
    --change properties of turret
    T.automatic = true
    T.size = 1
    Player(sender):getInventory():add(InventoryTurret(T))
    end
    
    function getDescription()
        return ""
    end
    
    function getHelp()
        return ""
    end

  2. I am trying to use all of the mods together...

     

    turns out the /inventory commands are the only ones working.

     

     

    Help?  :(

    Try reading post above yours and applying all the steps for every script you want to install (make sure you download proper files and put them in proper directories: that player/cmd/ is important).

     

    If that won't help post console (single-quote key) output on calls.

     

    I will post soon whole package along with FAQ.

    Thank you!  :D

×
×
  • Create New...