defines.command.standby

Post Reply
User avatar
withers
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Apr 08, 2016 4:54 pm
Contact:

defines.command.standby

Post by withers »

Can we have a way tell units to do nothing and wait until given another command?

I understand we can use entity.active = false to turn them off, but it seems that whenever a unit has nothing to do, it defaults into "wander" mode. I'd like to be able to send a unit to a given destination, and then just wait there for the next command. (not start wandering around)

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: defines.command.standby

Post by Bilka »

This was added for 0.17:
Added "stop" AI command, which tells the unit to just stop moving where it is. Takes a "ticks_to_wait" parameter, after which it returns to normal.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented mod requests”