Page 1 of 1

LuaEntity.target= [(R?)/W] for Combat Robots

Posted: Thu Sep 10, 2020 3:37 pm
by eradicator
What?

The ability to change what entity a combat robot is following.

Why?

Because after staring at the doc for half an hour the only method i can see is to recreate the entire robot using surface.create_entity{target=NewOwnerLuaEntity}. Which is wasteful at best and breaks other mods at worst. It also produces a slight optical "bumb" because the new robots start at a different animation frame.

What for?

To smoothly change the appearanc of the player avatar by creating a new character and copying everything.

Re: LuaEntity.target= [(R?)/W] for Combat Robots

Posted: Tue Oct 20, 2020 10:01 pm
by Rseding91
Added for the next release.

Re: LuaEntity.target= [(R?)/W] for Combat Robots

Posted: Tue Oct 20, 2020 11:30 pm
by eradicator
Thanks! Is it gonna be [R/W] or just [W]?

Re: LuaEntity.target= [(R?)/W] for Combat Robots

Posted: Wed Oct 21, 2020 9:46 am
by Bilka
RW

Re: LuaEntity.target= [(R?)/W] for Combat Robots

Posted: Wed Oct 21, 2020 2:36 pm
by eradicator
Perfect.