Space Engineers

Space Engineers

View Stats:
glythe Dec 9, 2022 @ 2:58am
Space Pirates
Is it possible to give ships to the AI for them to control?
< >
Showing 1-15 of 16 comments
tathen Dec 9, 2022 @ 3:41am 
think you need admin/creative to do that
ShadedMJ Dec 9, 2022 @ 4:07am 
It generally won't work the way you want. You can take a ship and select all blocks and make them pirate owned. Weapons may shoot but the ship won't move because the AI part doesn't magically appear for the ship.

That said, I did do something similar a while ago. I took the programmable block script off a pirate drone and put it in my own drone and it acted like a pirate drone.
glythe Dec 9, 2022 @ 4:21am 
Originally posted by tathen:
think you need admin/creative to do that

I am the server admin. I already tested and I can paste workshop material in survival.

I was just curious if I could get it to "do stuff".
TheVipersFang Dec 9, 2022 @ 4:27am 
If you want npcs that fight, there are mods for that purpose which will work better then trying to do things this way.
glythe Dec 9, 2022 @ 4:35am 
Originally posted by TheVipersFang:
If you want npcs that fight, there are mods for that purpose which will work better then trying to do things this way.


What mod have you tested that makes NPC ships work well?
The NPC ship can work from programmable blocks. NPCs have access to code that players don't. For instance the NPC can get the coordinates of the closest player no matter how distant that player is. From that information, it can be programmed via C# scripting to move to that player if within a certain range, etc.

There's a certain amount that can be done with the visual scripting engine as well.

If you look in the workshop, people have scripts and blueprints with critical parts you can stick on your ship to make it a viable NPC antagonist.
Dan2D3D  [developer] Dec 9, 2022 @ 9:10am 
Hi, you may want to create your enemy ships set to Space Pirate?

If yes =
Use that "Brain" Blueprint following the steps in the item description :
https://steamcommunity.com/sharedfiles/filedetails/?id=2797712487

I use to test my warships and to add cool enemies here and there in my Premade scenarios.
Last edited by Dan2D3D; Dec 9, 2022 @ 9:11am
Dan2D3D  [developer] Dec 9, 2022 @ 9:16am 
Info +

Create Atmos thruster enemy ships using the "Brain" Bp and place one per planet, this way they will wait for players going over there to attack them.

Using Atmos thrusters so they will not exit the Planet Gravity, they start tracking player on pasting so adding ION enemy ships may get them to crash on planets following players but not when they are "stuck" on planet not able to exit.
Last edited by Dan2D3D; Dec 9, 2022 @ 9:18am
Dan2D3D  [developer] Dec 9, 2022 @ 9:29am 
Oh! You may also like this feature where we can create enemy stations set to Space Pirate that will spawn enemy Drones :

SPRT Antenna names :"Play with enemy Drones"
https://steamcommunity.com/app/244850/discussions/0/2552901289725581551/
glythe Dec 9, 2022 @ 11:11am 
Originally posted by Dan2D3D:
Hi, you may want to create your enemy ships set to Space Pirate?

If yes =
Use that "Brain" Blueprint following the steps in the item description :
https://steamcommunity.com/sharedfiles/filedetails/?id=2797712487

I use to test my warships and to add cool enemies here and there in my Premade scenarios.

That looks perfect. I did not want to have to setup a "loop" somewhere where some npc mindlessly patrolled.



Originally posted by Dan2D3D:
Oh! You may also like this feature where we can create enemy stations set to Space Pirate that will spawn enemy Drones :

SPRT Antenna names :"Play with enemy Drones"
https://steamcommunity.com/app/244850/discussions/0/2552901289725581551/


This looks nice too- are the drones "automated" or do they need scripts like other drones?
Dan2D3D  [developer] Dec 9, 2022 @ 11:24am 
Those are "Magic" / edited by the SE programmers, they will spawn when the player enter the antenna range and track players, so you may setup the antenna range to your liking.
Last edited by Dan2D3D; Dec 9, 2022 @ 11:24am
glythe Dec 9, 2022 @ 11:25am 
Originally posted by Dan2D3D:
Those are "Magic" / edited by the SE programmers, they will spawn when the player enter the antenna range and track players, so you may setup the antenna range to your liking.

Oh so the drones are limited by range of the antenna?
Dan2D3D  [developer] Dec 9, 2022 @ 11:29am 
Not the Drone but the Spawner that is a antenna set to Space Pirate with the proper antenna name so to spawn Atmos thrusters enemy ship for planet or ION thruster enemy ships for space.

Nothing needed, you just have to follow the steps in the link :
SPRT Antenna names :"Play with enemy Drones"
https://steamcommunity.com/app/244850/discussions/0/2552901289725581551/
Last edited by Dan2D3D; Dec 9, 2022 @ 11:31am
Dan2D3D  [developer] Dec 9, 2022 @ 11:33am 
Info +

All player entering the Station antenna range will spawn one enemy Drone, so add more antennas if you want more enemy spawning in same time.
Dan2D3D  [developer] Dec 9, 2022 @ 11:37am 
Oh! And I recommend to create a "testing world" so you can try and gain experience before adding to your fav save.
< >
Showing 1-15 of 16 comments
Per page: 1530 50

Date Posted: Dec 9, 2022 @ 2:58am
Posts: 16