Space Engineers

Space Engineers

949 ratings
rearth NPC's
127
7
55
3
4
25
16
3
3
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Character, NPC, Other
File Size
Posted
Updated
47.777 MB
25 Jun, 2020 @ 11:51am
2 Jul, 2020 @ 6:46am
5 Change Notes ( view )

Subscribe to download
rearth NPC's

Description
This mod adds non-player characters to the game. They can walk around and attack nearby enemies, making space feel much more alive.
Update: The NPCs now also work in artificial gravity, now it's time to bring them to your space stations.
Multiplayer has not been tested and most likely won't work.



How To:
Use the NPC Control Station to hire engineers or soldiers and bring them into your world. In order to spawn engineers, you need a contract token, which can be purchased from any trade station. Once you have those in the inventory of the control block, you can spawn your first npcs. There are four control modes available:

------------------------------------------------------

Patrol: The NPC's will patrol a list of points. Those can can be set by the player, and the npc's will keep patrolling those points, while avoiding any obstacles on the way.

Attack Point: The NPCs will move towards a selected point. The recorded point will be whereever the center of your screen points at.

Stand Guard: Orders your NPCs to guard a select point.

Follow Player: The NPCs will follow you in a grid formation while you move.

------------------------------------------------------

Selecting a Point: Click the "Record Points" button in the terminal of the control station, then move to the point you want to record, and click SHIFT + U to record your current position. If you're recoding patrol points, repeat that step until you've selected all patrol points, and then click the "Stop Recording" button in the terminal.

In guard and attack mode, only one point can be selected, so it'll automatically stop recording. When selecting a point to attack, it'll select the point you are looking at.

------------------------------------------------------

The NPCs will attack any enemies within their range and chase them until they're dead or out of range again. They are also able to avoid walls and find their way around obstacles with some very basic pathfinding. All the NPCs are also recolorable, with the initial color being based on the color of the controller used for them. When an NPC dies, he'll respawn from the control station after a short delay (much like the actual space engineer). The control blocks also work fine when using blueprints, meaning you can save a blueprints with stored patrol, and then paste the same station anywhere, and the pasted copy will still maintain it's configuration.

The NPC controller itself can also be controlled using the custom data in the terminal, making it possible to give commands using programmable blocks. The guide can be found here: https://gist.github.com/Rearth/5abd41d9028fd4355423391c38fad5a0



Huge thanks to everyone helping me put this mod together by answering all my questions on discord, and also thanks to legitbanana for creating the 3d model that the elite NPC is based on (https://sketchfab.com/3d-models/hazard-unit-free-model-daeecbd492f34f619944f5a3004cae11)

This mod is still in a very early state. If you encounter any errors or problems, please let me know. The animations and effect still need some work, but this is the best i could do with the very limited mod support in the game.

Future plans for this mod:
- Improve leg movement
- Make NPCs keep their distance properly while shooting at a target
- Update the shooting animation and sounds
- Improve the impact and weapons launch effects
- Create a seperate MES/rivalAI that uses stations and dropships with the NPCs

You can view the code for this mod on github ( github.com/Rearth/NPC_mod ). If you have feature you'd like to add or a bug to fix, feel free to submit a pull request.
Popular Discussions View All (7)
34
11 Feb, 2022 @ 9:18pm
Bug Reports
rearth
5
23 Dec, 2021 @ 6:10pm
Where can you find contract tokens?
DarthBattlefront255
4
8 Aug, 2020 @ 4:55pm
Not working in space
HaloSpartanCats
305 Comments
Troi 22 Jan @ 4:32pm 
Mod doesn't work, it somehow corrupted my testing world for no reason. Someone has to make an alternative from this mod.
[R.P.C.]johnlemoore 17 Dec, 2024 @ 6:21am 
wish there be a update
Trigger (Strider 1) 4 Dec, 2024 @ 1:14am 
it used to work tho.. it used to be a good mod, but now its just a dead mod at this point.
Trigger (Strider 1) 4 Dec, 2024 @ 1:14am 
For some reason this Whole mod Corrupts your world/save no matter what you do.
Sentinel 1 Jul, 2024 @ 1:43pm 
Dead?
MikaWashere? 19 Jun, 2023 @ 12:53pm 
this mod must be completely broken or something because NOTHING works
LXzockt 20 Apr, 2023 @ 4:42pm 
One more thing I noticed: The NPCs are small blocks and it is possible to mount small block equipment on them like gatling guns, batteries, sensors, warheads, light. Basically, they work like Mech Legs. Maybe this mod could be the base for even bigger Mech legs, what is missing in SE.
LXzockt 20 Apr, 2023 @ 4:13pm 
This is mega awesome for my roleplay world, Really like them and the Control Station is nicely modeled.

But I have a huge request: please implement that they do not follow and shoot on an admin while in "UNTARGETABLE" mode. Admin-Maintaining Bases with active NPCs is a pain.
DeadEye Adams 15 Aug, 2022 @ 12:20pm 
How do I change the character model to a CIS droid or stormtrooper?
Madam Music 13 Jul, 2022 @ 7:32pm 
it'd be cool if they could weld blocks or blueprints within their range using components, but that's just an idea. they're pretty awesome even as they are, tbh.