Jump to content

Albert_Eichel

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Albert_Eichel

  1. Hi, I have added a function to speak with civilian ships.

    Calculating the chances of success are the same as whether to throw his cargo.

     

    My function adds that you can instruct the captain to give up his ship.

    This does not always work.

    But if you do, you have a new ship for free.

     

    Features:

    - Take over ships such as freighters or miners

    - If freight was on board, this is taken over and NOT branded as stole. So the goods can be sold at any station that seeks these goods.

    - Crew will not be taken over, of course, since you have been forced to leave. ;)

    - At ship rob -30000 reputation, rather than as for cargo only -15000

     

    Known bugs:

    Weapon towers are not taken over

     

    If the script is to be used in multiplayer, both need the script.

     

    Installation:

     

    Simply unzip the archive somewhere and move the script to "\ Steam \ SteamApps \ common \ Avorion \ data \ scripts \ entity".

    Best do a backup.

     

    For questions, ideas or suggestions I am gladly available.

     

     

    Sorry for the Bad English

     

    dsy2b3qw.jpg

    e9lxh79x.jpg

    CivilShipCapture.zip

  2.  

    I am now using the lines from the wreckagetoship.lua

     

    if not interactionPossible(callingPlayer) then
            print ("no interaction possible")
            return
        end
    
        local wreckage = Entity()
        local plan = wreckage:getPlan()
    
        -- set an empty plan, this will both delete the entity and avoid collisions with the ship
        -- that we're creating at this exact position
        wreckage:setPlan(BlockPlan())
    
        local ship = Sector():createShip(Player(callingPlayer), wreckage.name, plan, wreckage.position)
    
        AddDefaultShipScripts(ship)
        terminate()

     

    It is now removed as desired, but no new is generated?

  3. Hello, for all... sorry for bad english... Im German.

     

    How do the lines look like to turn a ship into a wreck?

     

    I'm not very familiar with LUA and I'm learning by doing ... I hope the question is okay

     

    In the documentation I've already looked but all I've tried has not worked :D

     

    Greetz

×
×
  • Create New...